commit 7d27657: [Minor] Add static log tag for hyperscan cache

Vsevolod Stakhov vsevolod at rspamd.com
Sat Oct 29 09:49:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-10-29 09:57:16 +0100
URL: https://github.com/rspamd/rspamd/commit/7d27657ae91f8fac7b0e00b619efab8b34b4b68f

[Minor] Add static log tag for hyperscan cache

---
 src/libserver/hyperscan_tools.cxx | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/libserver/hyperscan_tools.cxx b/src/libserver/hyperscan_tools.cxx
index e6d643fb2..6187208a9 100644
--- a/src/libserver/hyperscan_tools.cxx
+++ b/src/libserver/hyperscan_tools.cxx
@@ -33,24 +33,26 @@
 #include "unix-std.h"
 #include "rspamd_control.h"
 
+#define HYPERSCAN_LOG_TAG "hsxxxx"
+
 #define msg_info_hyperscan(...)   rspamd_default_log_function (G_LOG_LEVEL_INFO, \
-        "hyperscan", "", \
+        "hyperscan", HYPERSCAN_LOG_TAG, \
         RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 #define msg_info_hyperscan_lambda(...)   rspamd_default_log_function (G_LOG_LEVEL_INFO, \
-        "hyperscan", "", \
+        "hyperscan", HYPERSCAN_LOG_TAG, \
         log_func, \
         __VA_ARGS__)
 #define msg_err_hyperscan(...)   rspamd_default_log_function (G_LOG_LEVEL_CRITICAL, \
-        "hyperscan", "", \
+        "hyperscan", HYPERSCAN_LOG_TAG, \
         RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 #define msg_debug_hyperscan(...)  rspamd_conditional_debug_fast (nullptr, nullptr, \
-        rspamd_hyperscan_log_id, "hyperscan", "", \
+        rspamd_hyperscan_log_id, "hyperscan", HYPERSCAN_LOG_TAG, \
         RSPAMD_LOG_FUNC, \
         __VA_ARGS__)
 #define msg_debug_hyperscan_lambda(...) rspamd_conditional_debug_fast (nullptr, nullptr, \
-        rspamd_hyperscan_log_id, "hyperscan", "", \
+        rspamd_hyperscan_log_id, "hyperscan", HYPERSCAN_LOG_TAG, \
         log_func, \
         __VA_ARGS__)
 


More information about the Commits mailing list