summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2011-06-25 14:56:27 +0200
committerAlexander Barton <alex@barton.de>2011-06-25 14:56:27 +0200
commitd41f4d6d20797c9dfdde272b8689f4cc7622fe38 (patch)
treeb7d597f0f2a5ff3d92c1181309393e08c17a0d49
parent391cf4e2a11a1ca3969cb01db062037a9cd8caf3 (diff)
downloadngircd-d41f4d6d20797c9dfdde272b8689f4cc7622fe38.tar.gz
ngircd-d41f4d6d20797c9dfdde272b8689f4cc7622fe38.zip
Display configuration errors more prominent on "--configtest"
-rw-r--r--src/ngircd/conf.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index 4da5b9e0..9e3fe13d 100644
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -1933,8 +1933,13 @@ va_dcl
 	vsnprintf( msg, MAX_LOG_MSG_LEN, Format, ap );
 	va_end( ap );
 
-	if (Use_Log) Log( Level, "%s", msg );
-	else puts( msg );
+	if (!Use_Log) {
+		if (Level <= LOG_WARNING)
+			printf(" - %s\n", msg);
+		else
+			puts(msg);
+	} else
+		Log(Level, "%s", msg);
 }
 
 #ifdef DEBUG