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

masaori 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 402b7bebcf Cleanup debug log of plugins (#12130)
402b7bebcf is described below

commit 402b7bebcf7cdc61f006c74b23ce71e747729010
Author: Masaori Koshiba <[email protected]>
AuthorDate: Fri Mar 28 08:21:33 2025 +0900

    Cleanup debug log of plugins (#12130)
---
 plugins/compress/debug_macros.h           | 6 +++---
 plugins/experimental/uri_signing/common.h | 2 +-
 plugins/slice/slice.h                     | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/plugins/compress/debug_macros.h b/plugins/compress/debug_macros.h
index 1b275ec084..d5ce643a75 100644
--- a/plugins/compress/debug_macros.h
+++ b/plugins/compress/debug_macros.h
@@ -33,9 +33,9 @@ extern DbgCtl dbg_ctl;
 }
 using namespace compress_ns;
 
-#define debug(fmt, args...)                                                    
                      \
-  do {                                                                         
                      \
-    Dbg(compress_ns::dbg_ctl, "DEBUG: [%s:%d] [%s] " fmt, __FILE__, __LINE__, 
__FUNCTION__, ##args); \
+#define debug(fmt, args...)                 \
+  do {                                      \
+    Dbg(compress_ns::dbg_ctl, fmt, ##args); \
   } while (0)
 
 #define info(fmt, args...)                           \
diff --git a/plugins/experimental/uri_signing/common.h 
b/plugins/experimental/uri_signing/common.h
index 2e8d8ccca3..bcadb4f46b 100644
--- a/plugins/experimental/uri_signing/common.h
+++ b/plugins/experimental/uri_signing/common.h
@@ -41,7 +41,7 @@ extern DbgCtl dbg_ctl;
 using namespace uri_signing_ns;
 
 #define __FILENAME__          (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') 
+ 1 : __FILE__)
-#define PluginDebug(fmt, ...) Dbg(dbg_ctl, "[%s:% 4d] %s(): " fmt, 
__FILENAME__, __LINE__, __func__, ##__VA_ARGS__);
+#define PluginDebug(fmt, ...) Dbg(dbg_ctl, fmt, ##__VA_ARGS__);
 #define PluginError(fmt, ...)      \
   PluginDebug(fmt, ##__VA_ARGS__); \
   TSError("[%s:% 4d] %s(): " fmt, __FILENAME__, __LINE__, __func__, 
##__VA_ARGS__);
diff --git a/plugins/slice/slice.h b/plugins/slice/slice.h
index 3a2d310d61..72b7383aa9 100644
--- a/plugins/slice/slice.h
+++ b/plugins/slice/slice.h
@@ -36,7 +36,7 @@ extern DbgCtl dbg_ctl;
 using namespace slice_ns;
 
 #define __FILENAME__        (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 
1 : __FILE__)
-#define DEBUG_LOG(fmt, ...) Dbg(dbg_ctl, "[%s:% 4d] %s(): " fmt, __FILENAME__, 
__LINE__, __func__, ##__VA_ARGS__)
+#define DEBUG_LOG(fmt, ...) Dbg(dbg_ctl, fmt, ##__VA_ARGS__)
 
 #define ERROR_LOG(fmt, ...)                                                    
                     \
   TSError("[%s/%s:% 4d] %s(): " fmt, PLUGIN_NAME, __FILENAME__, __LINE__, 
__func__, ##__VA_ARGS__); \

Reply via email to