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:
parent
99f098257f
commit
220ec97ad6
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user