summaryrefslogtreecommitdiff
path: root/src/locale
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/locale
parentafe44c8ffd389b6296713acc8d56c68d2e44994b (diff)
downloadsystemd-6bf3c61c57f1ba439b2124fb89229395a77f8f46.tar.gz
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/locale')
-rw-r--r--src/locale/localed.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/locale/localed.c b/src/locale/localed.c
index 21d1ded65c..bb5b132ce7 100644
--- a/src/locale/localed.c
+++ b/src/locale/localed.c
@@ -720,9 +720,7 @@ int main(int argc, char *argv[]) {
_cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
int r;
- log_set_target(LOG_TARGET_AUTO);
- log_parse_environment();
- log_open();
+ log_setup_service();
umask(0022);
mac_selinux_init();