summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-08 01:08:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-08 02:14:34 +0300
commiteec1a3ac6695351acf0abe67a535e44883738a93 (patch)
tree2efd44372f3c19e683fe4b30ab02b1453d0f546e
parent86961b89087ccd3cf5aed8ba1add32a982f3641c (diff)
downloadmv-eec1a3ac6695351acf0abe67a535e44883738a93.tar.gz
mv-eec1a3ac6695351acf0abe67a535e44883738a93.tar.bz2
mv-eec1a3ac6695351acf0abe67a535e44883738a93.tar.xz
mv-eec1a3ac6695351acf0abe67a535e44883738a93.zip
Dont show debug info about zip archives in log.
-rw-r--r--src/fs/virtfs/zip.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fs/virtfs/zip.cpp b/src/fs/virtfs/zip.cpp
index 0556af1f8..32b7bdf56 100644
--- a/src/fs/virtfs/zip.cpp
+++ b/src/fs/virtfs/zip.cpp
@@ -36,6 +36,8 @@
#include "debug.h"
+//#define DEBUG_ZIP
+
extern const char *dirSeparator;
#define readVal(val, sz, msg) \
@@ -136,6 +138,7 @@ namespace Zip
if (findLast(header->fileName, dirSeparator) == false)
{
headers.push_back(header);
+#ifdef DEBUG_ZIP
logger->log(" file name: %s",
header->fileName.c_str());
logger->log(" compression method: %u",
@@ -144,11 +147,14 @@ namespace Zip
header->compressSize);
logger->log(" uncompressed size: %u",
header->uncompressSize);
+#endif // DEBUG_ZIP
}
else
{
+#ifdef DEBUG_ZIP
logger->log(" dir name: %s",
header->fileName.c_str());
+#endif // DEBUG_ZIP
dirs.push_back(header->fileName);
delete header;
}