]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Slightly improve control messages errors logging
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Oct 2017 20:29:19 +0000 (20:29 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Oct 2017 20:29:19 +0000 (20:29 +0000)
src/libserver/rspamd_control.c

index e669af94a2063306fd86491a25d35a80b42f7c0d..bbfcdafdf3066197b413aa1cf43f54e6051944c4 100644 (file)
@@ -437,8 +437,10 @@ rspamd_control_broadcast_cmd (struct rspamd_main *rspamd_main,
                        DL_APPEND (res, rep_elt);
                }
                else {
-                       msg_err ("cannot write request to the worker %P(%s), fd: %d: %s",
-                                       wrk->pid, g_quark_to_string (wrk->type),
+                       msg_err ("cannot write command %d(%z) to the worker %P(%s), fd: %d: %s",
+                                       (int)cmd->type, iov.iov_len,
+                                       wrk->pid,
+                                       g_quark_to_string (wrk->type),
                                        wrk->control_pipe[0],
                                        strerror (errno));
                }