diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-01-17 07:12:28 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-01-31 17:13:44 +0100 |
commit | d2acb93dc52b23a9e5d36dda48c1988aa6e9adf1 (patch) | |
tree | 011b4f6b2ca1ad39cc964ef66f3f5c6e2d91608e /src/timedate | |
parent | log: make tools also read the kernel command line when run as a service (diff) | |
download | systemd-d2acb93dc52b23a9e5d36dda48c1988aa6e9adf1.tar.xz systemd-d2acb93dc52b23a9e5d36dda48c1988aa6e9adf1.zip |
tree-wide: enable colorized logging for daemons when run in console
It may be useful when debugging daemons.
Diffstat (limited to 'src/timedate')
-rw-r--r-- | src/timedate/timedatectl.c | 2 | ||||
-rw-r--r-- | src/timedate/timedated.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index 7088a771a6..fb08f9ad26 100644 --- a/src/timedate/timedatectl.c +++ b/src/timedate/timedatectl.c @@ -1051,7 +1051,7 @@ static int run(int argc, char *argv[]) { int r; setlocale(LC_ALL, ""); - log_setup_cli(); + log_setup(); r = parse_argv(argc, argv); if (r <= 0) diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 8149facb34..563f470f54 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -1109,7 +1109,7 @@ static int run(int argc, char *argv[]) { _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL; int r; - log_setup_service(); + log_setup(); r = service_parse_argv("systemd-timedated.service", "Manage the system clock and timezone and NTP enablement.", |