From: Alex Rousskov Date: Tue, 10 Jul 2012 20:37:04 +0000 (-0600) Subject: Log original async call cancellation reason, not just the repeated ones. X-Git-Tag: sourceformat-review-1~191 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b79b74ed9bd31f8de3d7bce93c4eab4b83bb44c;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; }