]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Slight logging improvements
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Mar 2019 14:23:14 +0000 (14:23 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Mar 2019 14:23:14 +0000 (14:23 +0000)
src/lua/lua_http.c

index 1a3f8a4a288af1b7c1762017f6351803406bdb42..f88394f06a3b2917879206fb7797a407f8bb3013 100644 (file)
@@ -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);