]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: drop color settings in log message 23931/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Jul 2022 07:31:58 +0000 (16:31 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 7 Jul 2022 07:40:06 +0000 (16:40 +0900)
`log_warning()` colorize the message gracefully.

src/systemctl/systemctl-util.c

index 13a039cdfb6ee206f8cdb94e703ece709aad2ac1..57cb2ca26a120ea153e642e6ea20cbed9fb8ba87 100644 (file)
@@ -377,9 +377,7 @@ int need_daemon_reload(sd_bus *bus, const char *unit) {
 void warn_unit_file_changed(const char *unit) {
         assert(unit);
 
-        log_warning("%sWarning:%s The unit file, source configuration file or drop-ins of %s changed on disk. Run 'systemctl%s daemon-reload' to reload units.",
-                    ansi_highlight_red(),
-                    ansi_normal(),
+        log_warning("Warning: The unit file, source configuration file or drop-ins of %s changed on disk. Run 'systemctl%s daemon-reload' to reload units.",
                     unit,
                     arg_scope == LOOKUP_SCOPE_SYSTEM ? "" : " --user");
 }