]> granicus.if.org Git - ngircd/commitdiff
Display configuration errors more prominent on "--configtest"
authorAlexander Barton <alex@barton.de>
Sat, 25 Jun 2011 12:56:27 +0000 (14:56 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 25 Jun 2011 12:56:27 +0000 (14:56 +0200)
src/ngircd/conf.c

index 4da5b9e0742ac55ccc6c2c3276ce3d184443c751..9e3fe13d0250e682e324fb97851f6cb1031ee12c 100644 (file)
@@ -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