summaryrefslogtreecommitdiffstats
path: root/src/timedate
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-01-17 07:12:28 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-31 17:13:44 +0100
commitd2acb93dc52b23a9e5d36dda48c1988aa6e9adf1 (patch)
tree011b4f6b2ca1ad39cc964ef66f3f5c6e2d91608e /src/timedate
parentlog: make tools also read the kernel command line when run as a service (diff)
downloadsystemd-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.c2
-rw-r--r--src/timedate/timedated.c2
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.",