systemctl: drop color settings in log message

`log_warning()` colorize the message gracefully.
This commit is contained in:
Yu Watanabe
2022-07-07 16:40:06 +09:00
parent 158fdd5326
commit 557218776e
+1 -3
View 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");
}