This is an automated email from the ASF dual-hosted git repository.
masaori335 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 7e9aa23dd1 Cleanup set_connect_fail debug log (#13091)
7e9aa23dd1 is described below
commit 7e9aa23dd1f101e21e6ef99fc3238c19479006e9
Author: Masaori Koshiba <[email protected]>
AuthorDate: Wed Apr 22 08:03:39 2026 +0900
Cleanup set_connect_fail debug log (#13091)
* Cleanup set_connect_fail debug log
* Fix args
* Include swoc header explicitly
---
include/proxy/http/HttpTransact.h | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/include/proxy/http/HttpTransact.h
b/include/proxy/http/HttpTransact.h
index 33f4eafe89..a6d48a12f7 100644
--- a/include/proxy/http/HttpTransact.h
+++ b/include/proxy/http/HttpTransact.h
@@ -47,6 +47,8 @@
#include "proxy/ProxySession.h"
#include "tscore/MgmtDefs.h"
+#include "swoc/bwf_ex.h"
+
#include <cstdint>
#include <cstdio>
#include <string>
@@ -953,7 +955,13 @@ public:
if (e != EIO) {
this->cause_of_death_errno = e;
}
- Dbg(_dbg_ctl, "Setting upstream connection failure %d to %d",
original_connect_result, this->current.server->connect_result);
+
+ if (_dbg_ctl.on()) {
+ std::string buf;
+ swoc::bwprint(buf, "Setting connect_result {::s} to {::s}",
swoc::bwf::Errno(original_connect_result),
+ swoc::bwf::Errno(this->current.server->connect_result));
+ Dbg(_dbg_ctl, "%s", buf.c_str());
+ }
}
MgmtInt