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.
This commit is contained in:
Lennart Poettering
2018-11-20 11:18:22 +01:00
parent afe44c8ffd
commit 6bf3c61c57
44 changed files with 54 additions and 126 deletions
+1 -3
View File
@@ -609,9 +609,7 @@ int main(int argc, char *argv[]) {
goto finish;
}
log_set_target(LOG_TARGET_AUTO);
log_parse_environment();
log_open();
log_setup_service();
umask(0022);