]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Log noise reduction: No eCAP debugging messages at DBG_IMPORTANT level.
authorAlex Rousskov <rousskov@measurement-factory.com>
Sun, 21 Feb 2016 18:07:04 +0000 (11:07 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Sun, 21 Feb 2016 18:07:04 +0000 (11:07 -0700)
src/adaptation/ecap/Host.cc

index a1a95393ba72989a413eaa559889e72edf7f128b..cface5666495f29243a27879aeaeefa0c3a21120 100644 (file)
@@ -137,7 +137,7 @@ SquidLogLevel(libecap::LogVerbosity lv)
         return DBG_DATA; // is it a good idea to ignore other flags?
 
     if (lv.application())
-        return DBG_IMPORTANT; // is it a good idea to ignore other flags?
+        return lv.normal() ? DBG_IMPORTANT : 2;
 
     return 2 + 2*lv.debugging() + 3*lv.operation() + 2*lv.xaction();
 }