main: call fcft_log_init(). Note that this requires fcft >= 2.3.90

This commit is contained in:
Daniel Eklöf 2021-04-17 19:31:17 +02:00
parent 98d77b94c1
commit 353c2f012a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 5 additions and 1 deletions

4
main.c
View file

@ -371,6 +371,10 @@ main(int argc, char *const *argv)
log_init(log_colorize, as_server && log_syslog,
as_server ? LOG_FACILITY_DAEMON : LOG_FACILITY_USER, log_level);
_Static_assert(LOG_CLASS_ERROR + 1 == FCFT_LOG_CLASS_ERROR,
"fixme: fcft log level enum offset");
fcft_log_init(log_colorize, as_server && log_syslog, log_level + 1);
argc -= optind;
argv += optind;