reboot: change log level of reboot command from warning to debug
authorINSUN PYO <insun.pyo@samsung.com>
Fri, 19 Jan 2018 01:55:39 +0000 (10:55 +0900)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 12 Feb 2024 15:37:43 +0000 (16:37 +0100)
To prevent the annoying warning messages below :
   "Failed to read reboot parameter file: No such file or directory"

"SYSTEMD_LOG_LEVEL=debug reboot" command can see the original log.

Signed-off-by: INSUN PYO <insun.pyo@samsung.com>
Change-Id: I7bb619998bb2cce8959956f73f3dd62d48525c33

src/systemctl/systemctl.c

index a979c50..fd91e79 100644 (file)
@@ -7842,7 +7842,7 @@ static int halt_now(enum action a) {
 
                 r = read_one_line_file("/run/systemd/reboot-param", &param);
                 if (r < 0)
-                        log_warning_errno(r, "Failed to read reboot parameter file: %m");
+                        log_debug_errno(r, "Failed to read reboot parameter file: %m");
 
                 if (!isempty(param)) {
                         log_info("Rebooting with argument '%s'.", param);