mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 20:35:42 +02:00
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:
parent
a146bed317
commit
4e03dca051
1 changed files with 1 additions and 0 deletions
1
log.c
1
log.c
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue