From: Alex Rousskov Date: Mon, 16 Jul 2012 06:22:22 +0000 (-0600) Subject: Log original async call cancellation reason, not just the repeated ones. X-Git-Tag: SQUID_3_2_0_19~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a35aab5190e43d8eb31bb8e59d5d37dcc7556082;p=thirdparty%2Fsquid.git Log original async call cancellation reason, not just the repeated ones. --- diff --git a/src/base/AsyncCall.cc b/src/base/AsyncCall.cc index 88256d27f9..39ac588e9c 100644 --- a/src/base/AsyncCall.cc +++ b/src/base/AsyncCall.cc @@ -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; }