aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-03-01 10:30:12 +0100
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-03-01 10:30:12 +0100
commitb61d91b50d1efe4cc303c2e9838de9fb54148d26 (patch)
tree2da35960a639f8a2f60cfd358c4009a5a9153405
parent3531a6a6ac36e59c41a93cd9e07ae4cc1529522f (diff)
Logger: Output ERR log messages to stderr as well.
-rw-r--r--CommonLibs/Logger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CommonLibs/Logger.cpp b/CommonLibs/Logger.cpp
index 06e91f6..e2bc0bf 100644
--- a/CommonLibs/Logger.cpp
+++ b/CommonLibs/Logger.cpp
@@ -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;
}