archive/Lookup, input/Archive: remove useless log messages
This commit is contained in:
parent
9ae1256ae7
commit
0019231a37
@ -18,8 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ArchiveLookup.hxx"
|
#include "ArchiveLookup.hxx"
|
||||||
#include "ArchiveDomain.hxx"
|
|
||||||
#include "Log.hxx"
|
|
||||||
#include "fs/FileInfo.hxx"
|
#include "fs/FileInfo.hxx"
|
||||||
#include "system/Error.hxx"
|
#include "system/Error.hxx"
|
||||||
|
|
||||||
@ -57,9 +55,6 @@ archive_lookup(char *pathname)
|
|||||||
//so the upper should be file
|
//so the upper should be file
|
||||||
return {Path::FromFS(pathname), Path::FromFS(slash + 1)};
|
return {Path::FromFS(pathname), Path::FromFS(slash + 1)};
|
||||||
} else {
|
} else {
|
||||||
FormatError(archive_domain,
|
|
||||||
"Not a regular file: %s",
|
|
||||||
pathname);
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
} catch (const std::system_error &e) {
|
} catch (const std::system_error &e) {
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ArchiveInputPlugin.hxx"
|
#include "ArchiveInputPlugin.hxx"
|
||||||
#include "archive/ArchiveDomain.hxx"
|
|
||||||
#include "archive/ArchiveLookup.hxx"
|
#include "archive/ArchiveLookup.hxx"
|
||||||
#include "archive/ArchiveList.hxx"
|
#include "archive/ArchiveList.hxx"
|
||||||
#include "archive/ArchivePlugin.hxx"
|
#include "archive/ArchivePlugin.hxx"
|
||||||
@ -45,8 +44,6 @@ OpenArchiveInputStream(Path path, Mutex &mutex)
|
|||||||
try {
|
try {
|
||||||
l = archive_lookup(pname);
|
l = archive_lookup(pname);
|
||||||
if (l.archive.IsNull()) {
|
if (l.archive.IsNull()) {
|
||||||
FormatDebug(archive_domain,
|
|
||||||
"not an archive, lookup %s failed", pname);
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
@ -62,8 +59,6 @@ OpenArchiveInputStream(Path path, Mutex &mutex)
|
|||||||
//check which archive plugin to use (by ext)
|
//check which archive plugin to use (by ext)
|
||||||
arplug = archive_plugin_from_suffix(suffix);
|
arplug = archive_plugin_from_suffix(suffix);
|
||||||
if (!arplug) {
|
if (!arplug) {
|
||||||
FormatWarning(archive_domain,
|
|
||||||
"can't handle archive %s", l.archive.c_str());
|
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user