Logger: Output ERR log messages to stderr as well.

This commit is contained in:
Alexander Chemeris 2015-03-01 10:30:12 +01:00
parent 3531a6a6ac
commit b61d91b50d
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ Log::~Log()
if (mDummyInit) return;
// Anything at or above LOG_CRIT is an "alarm".
// Save alarms in the local list and echo them to stderr.
if (mPriority <= LOG_CRIT) {
if (mPriority <= LOG_ERR) {
if (sLoggerInited) addAlarm(mStream.str().c_str());
cerr << mStream.str() << endl;
}