c4w: disable perf logging when verbose logging is off

bb #2725.
This commit is contained in:
Török Edvin
2011-04-16 12:50:49 +03:00
parent a042283ba0
commit 3b35bf2525

View File

@@ -467,7 +467,9 @@ int CLAMAPI Scan_CreateInstance(CClamAVScanner **ppScanner) {
FAIL(CL_EMEM, "add_instance failed");
}
unlock_engine();
inst->scanopts = CL_SCAN_STDOPT | CL_SCAN_PERFORMANCE_INFO;
inst->scanopts = CL_SCAN_STDOPT;
if (logg_verbose)
inst->scanopts |= CL_SCAN_PERFORMANCE_INFO;
*ppScanner = (CClamAVScanner *)inst;
logg("Created new instance %p\n", inst);
WIN();