From 79d314b0282d7c698d825b01856bc4f589eece5f Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Wed, 7 Jul 2021 15:21:41 +0200 Subject: [PATCH] daemon/main: log interactive message properly --- daemon/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon/main.c b/daemon/main.c index 08e662c3f..b88a95c03 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -161,8 +161,10 @@ static int run_worker(uv_loop_t *loop, struct engine *engine, bool leader, struc uv_pipe_t *pipe = malloc(sizeof(*pipe)); uv_pipe_init(loop, pipe, 0); if (args->interactive) { - if (!args->quiet) - printf("[system] interactive mode\n> "); + if (!args->quiet) { + kr_log_notice(SYSTEM, "interactive mode\n"); + printf("> "); + } pipe->data = io_tty_alloc_data(); uv_pipe_open(pipe, 0); uv_read_start((uv_stream_t*)pipe, io_tty_alloc, io_tty_process_input); -- 2.47.2