Logger: Output ERR log messages to stderr as well.
This commit is contained in:
parent
3531a6a6ac
commit
b61d91b50d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue