From: Tomas Krizek Date: Wed, 7 Jul 2021 13:21:41 +0000 (+0200) Subject: daemon/main: log interactive message properly X-Git-Tag: v5.4.0~2^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79d314b0282d7c698d825b01856bc4f589eece5f;p=thirdparty%2Fknot-resolver.git daemon/main: log interactive message properly --- 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);