summaryrefslogtreecommitdiff
path: root/src/machine
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-01-17 15:12:28 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-02-01 01:13:44 +0900
commitd2acb93dc52b23a9e5d36dda48c1988aa6e9adf1 (patch)
tree011b4f6b2ca1ad39cc964ef66f3f5c6e2d91608e /src/machine
parent74189020eb2ec05336d93bdeeffbda1724ba1e07 (diff)
downloadsystemd-d2acb93dc52b23a9e5d36dda48c1988aa6e9adf1.tar.gz
tree-wide: enable colorized logging for daemons when run in console
It may be useful when debugging daemons.
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/machinectl.c2
-rw-r--r--src/machine/machined.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c
index e254e25559..1771abc077 100644
--- a/src/machine/machinectl.c
+++ b/src/machine/machinectl.c
@@ -2876,7 +2876,7 @@ static int run(int argc, char *argv[]) {
int r;
setlocale(LC_ALL, "");
- log_setup_cli();
+ log_setup();
/* The journal merging logic potentially needs a lot of fds. */
(void) rlimit_nofile_bump(HIGH_RLIMIT_NOFILE);
diff --git a/src/machine/machined.c b/src/machine/machined.c
index 6a5bf391e6..e9e6a6270a 100644
--- a/src/machine/machined.c
+++ b/src/machine/machined.c
@@ -324,7 +324,7 @@ static int run(int argc, char *argv[]) {
int r;
log_set_facility(LOG_AUTH);
- log_setup_service();
+ log_setup();
r = service_parse_argv("systemd-machined.service",
"Manage registrations of local VMs and containers.",