Commit 0f351d84665873704d7f85a87e84b24e1c6ae8f3

Con Kolivas 2011-07-06T12:57:38

Always log warnings and error messages.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/util.c b/util.c
index f48dbbf..ca0ca79 100644
--- a/util.c
+++ b/util.c
@@ -70,7 +70,7 @@ void applog(int prio, const char *fmt, ...)
 #else
 	if (0) {}
 #endif
-	else if (opt_log_output) {
+	else if (opt_log_output || prio == LOG_WARNING || prio == LOG_ERR) {
 		char *f;
 		int len;
 		struct timeval tv = { };