1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

core: in a container log to /dev/console if "debug" is specified

This commit is contained in:
Lennart Poettering 2013-12-18 05:09:53 +01:00
parent 99f098257f
commit 220ec97ad6

View File

@ -417,7 +417,7 @@ static int parse_proc_cmdline_word(const char *word) {
* will block with every log message for for 60 seconds, * will block with every log message for for 60 seconds,
* before they give up. */ * before they give up. */
log_set_max_level(LOG_DEBUG); 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()) { } else if (!in_initrd()) {
unsigned i; unsigned i;