From eec1a3ac6695351acf0abe67a535e44883738a93 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 8 Mar 2017 01:08:42 +0300 Subject: Dont show debug info about zip archives in log. --- src/fs/virtfs/zip.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fs/virtfs/zip.cpp') 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; } -- cgit v1.2.3-70-g09d2