summaryrefslogtreecommitdiffstats
path: root/src/journal-remote/journal-gatewayd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-20 11:18:22 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-20 11:18:22 +0100
commit6bf3c61c57f1ba439b2124fb89229395a77f8f46 (patch)
tree528b456d3f556a36c26d2808b73e216f6a72d9fc /src/journal-remote/journal-gatewayd.c
parentgenerators: introduce a common implementation for the log setup boilerplate (diff)
downloadsystemd-6bf3c61c57f1ba439b2124fb89229395a77f8f46.tar.xz
systemd-6bf3c61c57f1ba439b2124fb89229395a77f8f46.zip
log: introduce new helper call log_setup_service()
Let's reduce the common boilerplate and have a single setup function used by all service code to setup logging.
Diffstat (limited to 'src/journal-remote/journal-gatewayd.c')
-rw-r--r--src/journal-remote/journal-gatewayd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c
index a4e25f2284..71553083d9 100644
--- a/src/journal-remote/journal-gatewayd.c
+++ b/src/journal-remote/journal-gatewayd.c
@@ -990,9 +990,7 @@ int main(int argc, char *argv[]) {
struct MHD_Daemon *d = NULL;
int r, n;
- log_set_target(LOG_TARGET_AUTO);
- log_parse_environment();
- log_open();
+ log_setup_service();
r = parse_argv(argc, argv);
if (r < 0)