From 4e03dca051f1a41e4d5e207aae8bca35e73972ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 26 Jan 2019 14:56:26 +0100 Subject: [PATCH] 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. --- log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/log.c b/log.c index ff7346f..458985a 100644 --- a/log.c +++ b/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))