commit 75f2a55: [Minor] Lua_http: Save log tag

Vsevolod Stakhov vsevolod at highsecure.ru
Sun Nov 3 09:42:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-11-03 09:36:44 +0000
URL: https://github.com/rspamd/rspamd/commit/75f2a555c21185c1f7acae2c88f376857341f00f (HEAD -> master)

[Minor] Lua_http: Save log tag

---
 src/lua/lua_http.c | 7 +++++++
 1 file changed, 7 insertions(+)

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);
 		}


More information about the Commits mailing list