diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-30 20:29:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-30 20:29:19 +0000 |
commit | 12a7916d35b04128e1012f1de3d4f3d60d183908 (patch) | |
tree | fdbeffe970f3dfd7b9c28da261b5cad71c2495c4 /src/libserver | |
parent | 3e155850244b8c7a93fca5ba1052547e3f7d3ccf (diff) | |
download | rspamd-12a7916d35b04128e1012f1de3d4f3d60d183908.tar.gz rspamd-12a7916d35b04128e1012f1de3d4f3d60d183908.zip |
[Minor] Slightly improve control messages errors logging
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/rspamd_control.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c index e669af94a..bbfcdafdf 100644 --- a/src/libserver/rspamd_control.c +++ b/src/libserver/rspamd_control.c @@ -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)); } |