summaryrefslogtreecommitdiffstats
path: root/src/hs_helper.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-04 16:19:54 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-04 16:19:54 +0100
commit3b3831ccc6c475eab6098670e1c6506e1c8d99c8 (patch)
treed8ba76bf2ff8c88ab81b61e54dd8d4894f452da3 /src/hs_helper.c
parent80496e374e44f43664962b918a4b852f9b780c1b (diff)
downloadrspamd-3b3831ccc6c475eab6098670e1c6506e1c8d99c8.tar.gz
rspamd-3b3831ccc6c475eab6098670e1c6506e1c8d99c8.zip
[Minor] Slightly improve log messages
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r--src/hs_helper.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c
index a20e176f6..d0fbb1cd9 100644
--- a/src/hs_helper.c
+++ b/src/hs_helper.c
@@ -213,8 +213,7 @@ rspamd_rs_compile_cb (guint ncompiled, GError *err, void *cbd)
ctx = (struct hs_helper_ctx *)worker->ctx;
if (ncompiled > 0) {
- msg_info ("compiled %d regular expressions to the hyperscan tree",
- ncompiled);
+ /* Enforce update for other workers */
hack_global_forced = TRUE;
}
@@ -225,6 +224,15 @@ rspamd_rs_compile_cb (guint ncompiled, GError *err, void *cbd)
if (!ctx->loaded) {
when = 5.0; /* Postpone */
ctx->loaded = TRUE;
+ msg_info ("compiled %d regular expressions to the hyperscan tree, "
+ "postpone loaded notification for %.0f seconds to avoid races",
+ ncompiled,
+ when);
+ }
+ else {
+ msg_info ("compiled %d regular expressions to the hyperscan tree, "
+ "send loaded notification",
+ ncompiled);
}
tm = g_malloc0 (sizeof (*tm));