aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-03 09:36:44 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-03 09:36:44 +0000
commit75f2a555c21185c1f7acae2c88f376857341f00f (patch)
treed00434a5d55928c07691545c555f553fbff0c667
parent89e2ec1bd283a40160712f26addc27793b0a1c44 (diff)
downloadrspamd-75f2a555c21185c1f7acae2c88f376857341f00f.tar.gz
rspamd-75f2a555c21185c1f7acae2c88f376857341f00f.zip
[Minor] Lua_http: Save log tag
-rw-r--r--src/lua/lua_http.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 9a3238364..6f541b962 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -439,6 +439,13 @@ lua_http_make_connection (struct lua_http_cbdata *cbd)
cbd->flags |= RSPAMD_LUA_HTTP_FLAG_RESOLVED;
}
+ if (cbd->task) {
+ cbd->conn->log_tag = cbd->task->task_pool->tag.uid;
+ }
+ else if (cbd->cfg) {
+ cbd->conn->log_tag = cbd->cfg->cfg_pool->tag.uid;
+ }
+
if (cbd->item) {
rspamd_symcache_item_async_inc (cbd->task, cbd->item, M);
}