mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 20:23:36 +08:00
parent
477851f5d6
commit
9a75c65248
@ -344,15 +344,17 @@ int main(int argc, char *argv[]) {
|
||||
(void) cg_get_root_path(&cgroup);
|
||||
in_container = detect_container() > 0;
|
||||
|
||||
/* If the logging messages are going to KMSG, and if we are not running from a container,
|
||||
* then try to update the sysctl kernel.printk current value in order to see "info" messages;
|
||||
* This current log level is not updated if already big enough.
|
||||
/* If the logging messages are going to KMSG, and if we are not running from a container, then try to
|
||||
* update the sysctl kernel.printk current value in order to see "info" messages; This current log
|
||||
* level is not updated if already big enough.
|
||||
*/
|
||||
if (!in_container && IN_SET(log_get_target(), LOG_TARGET_AUTO,
|
||||
LOG_TARGET_JOURNAL_OR_KMSG,
|
||||
LOG_TARGET_SYSLOG_OR_KMSG,
|
||||
LOG_TARGET_KMSG))
|
||||
bump_sysctl_printk_log_level(LOG_INFO);
|
||||
if (!in_container &&
|
||||
IN_SET(log_get_target(),
|
||||
LOG_TARGET_AUTO,
|
||||
LOG_TARGET_JOURNAL_OR_KMSG,
|
||||
LOG_TARGET_SYSLOG_OR_KMSG,
|
||||
LOG_TARGET_KMSG))
|
||||
bump_sysctl_printk_log_level(LOG_WARNING);
|
||||
|
||||
use_watchdog = getenv("WATCHDOG_USEC");
|
||||
watchdog_device = getenv("WATCHDOG_DEVICE");
|
||||
|
Loading…
Reference in New Issue
Block a user