aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-03-01 10:30:12 +0100
committerTom Tsou <tom@tsou.cc>2015-04-06 18:38:43 -0700
commitf57eb1a6bb465427623e0c8670889e5982a9bae3 (patch)
tree81cd581b0ad5f7b2f530771c0c747325454c0d14
parentc401802eaa6d7b7c4a058fb2800644a8c8ffbd7d (diff)
Logger: Output ERR log messages to stderr as well.
Signed-off-by: Tom Tsou <tom@tsou.cc>
-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;
}