mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
log to kmsg when "debug" is used on the kernel command line
This commit is contained in:
parent
792d616391
commit
bd6d296339
@ -401,9 +401,14 @@ static int parse_proc_cmdline_word(const char *word) {
|
||||
|
||||
} else if (streq(word, "quiet"))
|
||||
arg_show_status = false;
|
||||
else if (streq(word, "debug"))
|
||||
else if (streq(word, "debug")) {
|
||||
/* Log to kmsg, the journal socket will fill up before the
|
||||
* journal is started and tools running during that time
|
||||
* will block with every log message for for 60 seconds,
|
||||
* before they give up. */
|
||||
log_set_max_level(LOG_DEBUG);
|
||||
else if (!in_initrd()) {
|
||||
log_set_target(LOG_TARGET_KMSG);
|
||||
} else if (!in_initrd()) {
|
||||
unsigned i;
|
||||
|
||||
/* SysV compatibility */
|
||||
|
Loading…
Reference in New Issue
Block a user