forked from external/yambar
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)
|
init(void)
|
||||||
{
|
{
|
||||||
openlog(NULL, /*LOG_PID*/0, LOG_USER);
|
openlog(NULL, /*LOG_PID*/0, LOG_USER);
|
||||||
|
setlogmask(LOG_UPTO(LOG_WARNING));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __attribute__((destructor))
|
static void __attribute__((destructor))
|
||||||
|
|
Loading…
Add table
Reference in a new issue