mirror of
https://github.com/systemd/systemd
synced 2024-07-21 18:24:38 +00:00
Merge pull request #23931 from yuwata/systemctl-color-log
systemctl: colorize logs
This commit is contained in:
commit
db835e5d0e
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -1113,8 +1113,7 @@ static int run(int argc, char *argv[]) {
|
|||
int r;
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
log_parse_environment();
|
||||
log_open();
|
||||
log_setup();
|
||||
|
||||
/* The journal merging logic potentially needs a lot of fds. */
|
||||
(void) rlimit_nofile_bump(HIGH_RLIMIT_NOFILE);
|
||||
|
|
Loading…
Reference in a new issue