summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-07-07 16:38:54 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-07-07 16:40:06 +0900
commit158fdd5326a750fe01fcaa76ac4a56fe197cf1aa (patch)
tree769fb699a46fe12bf20627f556fb02a0fbb089dd
parentb5fe371c0ea1814738b685634c5d405cfb750a6a (diff)
downloadsystemd-158fdd5326a750fe01fcaa76ac4a56fe197cf1aa.tar.gz
systemctl: enable colorized logging by default
-rw-r--r--src/systemctl/systemctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 003d2f0c25..fa32c67a08 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -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);