log: for now, only log errors and warnings to syslog

Eventually, this should probably be made configurable, and/or possible
to control through command line options.
This commit is contained in:
Daniel Eklöf 2019-01-26 14:56:26 +01:00
parent a146bed317
commit 4e03dca051

1
log.c
View file

@ -14,6 +14,7 @@ static void __attribute__((constructor))
init(void)
{
openlog(NULL, /*LOG_PID*/0, LOG_USER);
setlogmask(LOG_UPTO(LOG_WARNING));
}
static void __attribute__((destructor))