Skip to content

Commit

Permalink
[Minor] Add static log tag for hyperscan cache
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Oct 29, 2022
1 parent 9fb5afd commit 7d27657
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/libserver/hyperscan_tools.cxx
Expand Up @@ -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__)

Expand Down

0 comments on commit 7d27657

Please sign in to comment.