diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-05 19:40:08 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-05 19:40:08 +0100 |
commit | b4b158a4de88a2961bd62a3297c74f495a25de1a (patch) | |
tree | 02e001c5ed717d51a613c2148667d9d206804ef6 /src/plugins/dkim_check.c | |
parent | bb42dad1562b1f532866f260f79463ad83243b45 (diff) | |
download | rspamd-b4b158a4de88a2961bd62a3297c74f495a25de1a.tar.gz rspamd-b4b158a4de88a2961bd62a3297c74f495a25de1a.zip |
[Minor] Add more logging for DKIM keys caching
Diffstat (limited to 'src/plugins/dkim_check.c')
-rw-r--r-- | src/plugins/dkim_check.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index f7600552b..9861d1eb7 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -1110,6 +1110,12 @@ dkim_module_key_handler (rspamd_dkim_key_t *key, /* Release key when task is processed */ rspamd_mempool_add_destructor (res->task->task_pool, dkim_module_key_dtor, res->key); + msg_info_task ("stored DKIM key for %s in LRU cache for %d seconds, " + "%d/%d elements in the cache", + rspamd_dkim_get_dns_key (ctx), + rspamd_dkim_key_get_ttl (key), + rspamd_lru_hash_size (dkim_module_ctx->dkim_hash), + rspamd_lru_hash_capacity (dkim_module_ctx->dkim_hash)); } else { /* Insert tempfail symbol */ |