]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add extra logging details
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 May 2018 14:38:25 +0000 (15:38 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 May 2018 14:38:25 +0000 (15:38 +0100)
src/fuzzy_storage.c
src/rspamd.c

index d5410bc76a5d4884f897c8770b07f36a05bf1e33..e0db2182ca71740242b930e6f7f20daa0ff434d3 100644 (file)
@@ -2666,12 +2666,17 @@ fuzzy_peer_rep (struct rspamd_worker *worker,
                rspamd_socket_nonblocking (rep_fd);
        }
 
+       msg_info ("got peer fd reply from the main process");
+
        /* Start listening */
        cur = worker->cf->listen_socks;
        while (cur) {
                ls = cur->data;
 
                if (ls->fd != -1) {
+                       msg_info ("start listening on %s",
+                                       rspamd_inet_address_to_string_pretty (ls->addr));
+
                        if (ls->type == RSPAMD_WORKER_SOCKET_UDP) {
                                accept_events = g_malloc0 (sizeof (struct event) * 2);
                                event_set (&accept_events[0], ls->fd, EV_READ | EV_PERSIST,
index ab065a967063802ebaf8bbd77d62a4965d9e3a4d..cc3be33572381a9d948c07e060f36998cb6e3dcf 100644 (file)
@@ -558,8 +558,9 @@ spawn_workers (struct rspamd_main *rspamd_main, struct event_base *ev_base)
                }
                else {
                        if (!cf->enabled || cf->count <= 0) {
-                               msg_info_main ("worker of type %s is disabled in the config, "
-                                               "skip spawning", g_quark_to_string (cf->type));
+                               msg_info_main ("worker of type %s(%s) is disabled in the config, "
+                                               "skip spawning", g_quark_to_string (cf->type),
+                                               cf->bind_conf ? cf->bind_conf->bind_line : "none");
                                cur = g_list_next (cur);
 
                                continue;