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

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


The following commit(s) were added to refs/heads/10.0.x by this push:
     new b435975eb5 Make NetDbg available on releaes builds (#11451) (#11458)
b435975eb5 is described below

commit b435975eb5e12b118aeb94110231932612681df3
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Fri Jun 21 11:02:54 2024 -0600

    Make NetDbg available on releaes builds (#11451) (#11458)
    
    (cherry picked from commit 1013ee5f36ac94f43fac18643266c4ae201810b9)
---
 src/iocore/net/P_Net.h     | 5 -----
 src/iocore/net/PollCont.cc | 4 ----
 2 files changed, 9 deletions(-)

diff --git a/src/iocore/net/P_Net.h b/src/iocore/net/P_Net.h
index 1a6c9abd88..f6db59ee07 100644
--- a/src/iocore/net/P_Net.h
+++ b/src/iocore/net/P_Net.h
@@ -103,12 +103,7 @@ extern NetStatsBlock net_rsb;
 
 static constexpr ts::ModuleVersion 
NET_SYSTEM_MODULE_INTERNAL_VERSION(NET_SYSTEM_MODULE_PUBLIC_VERSION, 
ts::ModuleVersion::PRIVATE);
 
-// For very verbose iocore debugging.
-#ifndef DEBUG
-#define NetDbg(dbg_ctl, fmt, ...)
-#else
 #define NetDbg(dbg_ctl, fmt, ...) Dbg(dbg_ctl, fmt, ##__VA_ARGS__)
-#endif
 
 /// Default amount of buffer space to use for the initial read on an incoming 
connection.
 /// This is an IOBufferBlock index, not the size in bytes.
diff --git a/src/iocore/net/PollCont.cc b/src/iocore/net/PollCont.cc
index 2c997dc5cd..b5692f57d4 100644
--- a/src/iocore/net/PollCont.cc
+++ b/src/iocore/net/PollCont.cc
@@ -27,12 +27,8 @@
 
 namespace
 {
-#ifdef DEBUG
-
 DbgCtl dbg_ctl_iocore_net_poll{"iocore_net_poll"};
 DbgCtl dbg_ctl_v_iocore_net_poll{"v_iocore_net_poll"};
-
-#endif
 } // end anonymous namespace
 
 PollCont::PollCont(Ptr<ProxyMutex> &m, int pt)

Reply via email to