mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-25 01:40:19 -05:00
log: caller can control syslog level
This commit is contained in:
parent
7a3fb9284e
commit
a0fcec3a3d
4 changed files with 19 additions and 7 deletions
4
main.c
4
main.c
|
|
@ -165,6 +165,8 @@ main(int argc, char *const *argv)
|
|||
}
|
||||
}
|
||||
|
||||
log_init(as_server ? LOG_FACILITY_DAEMON : LOG_FACILITY_USER, LOG_CLASS_WARNING);
|
||||
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
|
|
@ -176,8 +178,6 @@ main(int argc, char *const *argv)
|
|||
struct server *server = NULL;
|
||||
struct shutdown_context shutdown_ctx = {.term = &term, .exit_code = EXIT_FAILURE};
|
||||
|
||||
log_init(as_server ? LOG_FACILITY_DAEMON : LOG_FACILITY_USER);
|
||||
|
||||
if ((fdm = fdm_init()) == NULL)
|
||||
goto out;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue