From 220ec97ad65150542bb9c8a1ba20b19ea0d49ff8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 18 Dec 2013 05:09:53 +0100 Subject: [PATCH] core: in a container log to /dev/console if "debug" is specified --- src/core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/main.c b/src/core/main.c index e00d0702f..eac4fe613 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -417,7 +417,7 @@ static int parse_proc_cmdline_word(const char *word) { * will block with every log message for for 60 seconds, * before they give up. */ log_set_max_level(LOG_DEBUG); - log_set_target(LOG_TARGET_KMSG); + log_set_target(detect_container(NULL) > 0 ? LOG_TARGET_CONSOLE : LOG_TARGET_KMSG); } else if (!in_initrd()) { unsigned i; -- 2.30.2