summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-04-25 14:00:20 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-04-25 14:00:20 (GMT)
commit230dccad58b9fc04d2712fa6165be0bc9218ea47 (patch)
tree0bd5c416b4d110b499fdbeef00bd05af489e2913
parent19e7d9e3326dc97823aabfbefd63555e1d680eaf (diff)
downloadlibkolabxml-230dccad58b9fc04d2712fa6165be0bc9218ea47.tar.gz
log warnings too
-rw-r--r--src/utils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.cpp b/src/utils.cpp
index 4b4f60b..4991d14 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -156,6 +156,10 @@ void logMessage(const std::string &m, ErrorSeverity s)
break;
case Warning:
std::cerr << "Warning: " << m << std::endl;
+ if (ThreadLocal::inst().errorBit < Warning) {
+ ThreadLocal::inst().errorBit = Warning;
+ ThreadLocal::inst().errorMessage = m;
+ }
break;
case Error:
std::cerr << "Error: " << m << std::endl;