commit 7ad1f16: [Minor] Slight logging improvements
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Mar 20 14:28:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-03-20 14:23:14 +0000
URL: https://github.com/rspamd/rspamd/commit/7ad1f167ead534380f923496d842f564409ab4f0
[Minor] Slight logging improvements
---
src/lua/lua_http.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 1a3f8a4a2..f88394f06 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -204,7 +204,9 @@ lua_http_error_handler (struct rspamd_http_connection *conn, GError *err)
}
else {
/* TODO: kill me please */
- msg_info ("lost HTTP error in coroutines mess: %s", err->message);
+ msg_info ("lost HTTP error from %s in coroutines mess: %s",
+ rspamd_inet_address_to_string_pretty (cbd->addr),
+ err->message);
}
}
else {
@@ -233,7 +235,8 @@ lua_http_finish_handler (struct rspamd_http_connection *conn,
}
else {
/* TODO: kill me please */
- msg_err ("lost HTTP data in coroutines mess");
+ msg_err ("lost HTTP data from %s in coroutines mess",
+ rspamd_inet_address_to_string_pretty (cbd->addr));
}
REF_RELEASE (cbd);
More information about the Commits
mailing list