summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-01-17 14:52:22 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-02-01 01:13:44 +0900
commit74189020eb2ec05336d93bdeeffbda1724ba1e07 (patch)
tree03cabb071e5083b00299842bdc1562270ad4c3cc /src/systemctl/systemctl.c
parent8ccc31d498278cd1531f153ae1ebedf373b0e9dd (diff)
downloadsystemd-74189020eb2ec05336d93bdeeffbda1724ba1e07.tar.gz
log: make tools also read the kernel command line when run as a service
This effectively reverts 41d1f469cf10f5f3e9cb4f4853ace9b0cfe5beae. Before this, e.g., `networkctl reload` invoked by `systemctl reload systemd-networkd.service` does not produce debugging logs even if systemd.log-level=debug is set. This fixes the issue.
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index c53ed41cc3..e8e3d2438a 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1085,7 +1085,7 @@ static int run(int argc, char *argv[]) {
int r;
setlocale(LC_ALL, "");
- log_parse_environment_cli();
+ log_parse_environment();
log_open();
/* The journal merging logic potentially needs a lot of fds. */