summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libserver/rspamd_control.c1
-rw-r--r--src/worker.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c
index cc336174e..7c5f365dd 100644
--- a/src/libserver/rspamd_control.c
+++ b/src/libserver/rspamd_control.c
@@ -809,6 +809,7 @@ rspamd_srv_handler (gint fd, short what, gpointer ud)
wcmd.cmd.log_pipe.type = cmd.cmd.log_pipe.type;
rspamd_control_broadcast_cmd (srv, &wcmd, rfd,
rspamd_control_log_pipe_io_handler, NULL);
+ break;
default:
msg_err ("unknown command type: %d", cmd.type);
break;
diff --git a/src/worker.c b/src/worker.c
index 8056b3f0f..4a646b730 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -376,9 +376,11 @@ rspamd_worker_log_pipe_handler (struct rspamd_main *rspamd_main,
lp->type = cmd->cmd.log_pipe.type;
DL_APPEND (ctx->log_pipes, lp);
+ msg_info ("added new log pipe");
}
else {
rep.reply.log_pipe.status = ENOENT;
+ msg_err ("cannot attach log pipe: invalid fd");
}
if (write (fd, &rep, sizeof (rep)) != sizeof (rep)) {