]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Log original async call cancellation reason, not just the repeated ones.
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 10 Jul 2012 20:37:04 +0000 (14:37 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 10 Jul 2012 20:37:04 +0000 (14:37 -0600)
src/base/AsyncCall.cc

index 88256d27f9fa2c3eedf77ebd7d2e13eb892ff4ff..39ac588e9c1ae49162ec9f900518af8f2c9e1ff1 100644 (file)
@@ -47,9 +47,10 @@ AsyncCall::make()
 bool
 AsyncCall::cancel(const char *reason)
 {
-    if (isCanceled)
-        debugs(debugSection, debugLevel, HERE << "will not call " << name <<
-               " [" << id << ']' << " also because " << reason);
+    debugs(debugSection, debugLevel, HERE << "will not call " << name <<
+           " [" << id << "] " << (isCanceled ? "also " : "") <<
+           "because " << reason);
+
     isCanceled = reason;
     return false;
 }