aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/hyperscan_tools.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-10-29 09:57:16 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-10-29 09:57:16 +0100
commit7d27657ae91f8fac7b0e00b619efab8b34b4b68f (patch)
tree36d5954066ccda3e70e1975d126c771d2702f2f4 /src/libserver/hyperscan_tools.cxx
parent9fb5afd475d564bea97d08a092be61ce77bba8b5 (diff)
downloadrspamd-7d27657ae91f8fac7b0e00b619efab8b34b4b68f.tar.gz
rspamd-7d27657ae91f8fac7b0e00b619efab8b34b4b68f.zip
[Minor] Add static log tag for hyperscan cache
Diffstat (limited to 'src/libserver/hyperscan_tools.cxx')
-rw-r--r--src/libserver/hyperscan_tools.cxx12
1 files 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__)