1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-12 18:00:28 +00:00

Display configuration errors more prominent on "--configtest"

This commit is contained in:
Alexander Barton 2011-06-25 14:56:27 +02:00
parent 391cf4e2a1
commit d41f4d6d20

View 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