log: make tools also read the kernel command line when run as a service

This effectively reverts 41d1f469cf.

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.
This commit is contained in:
Yu Watanabe
2021-01-17 14:52:22 +09:00
parent 8ccc31d498
commit 74189020eb
5 changed files with 8 additions and 13 deletions

View File

@@ -69,7 +69,6 @@ void log_close(void);
void log_forget_fds(void);
void log_parse_environment(void);
void log_parse_environment_cli(void);
int log_dispatch_internal(
int level,