This is an automated email from the ASF dual-hosted git repository.

cmcfarlen pushed a commit to branch 10.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 48de82795827375816190e5005b47ee536cf719f
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
    
    (cherry picked from commit 7e9aa23dd1f101e21e6ef99fc3238c19479006e9)
---
 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 52c92a9cb7..be5f45ab34 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>
@@ -955,7 +957,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

Reply via email to