From a35aab5190e43d8eb31bb8e59d5d37dcc7556082 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Mon, 16 Jul 2012 00:22:22 -0600 Subject: [PATCH] Log original async call cancellation reason, not just the repeated ones. --- src/base/AsyncCall.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } -- 2.47.2