From: Alexander Barton Date: Sat, 25 Jun 2011 12:56:27 +0000 (+0200) Subject: Display configuration errors more prominent on "--configtest" X-Git-Tag: rel-18-rc1~5^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d41f4d6d20797c9dfdde272b8689f4cc7622fe38;p=ngircd Display configuration errors more prominent on "--configtest" --- 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