Always log exceptions to syslog, in debug level.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sat, 22 Feb 2014 22:11:56 +0000 (23:11 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sat, 22 Feb 2014 22:11:56 +0000 (23:11 +0100)
src/Throw.cpp

index 02e5688..286d73f 100644 (file)
@@ -13,9 +13,9 @@ void dmlite::vfsThrowHelper(const std::string &classname, const std::string& fun
   std::string text;
 
   text = classname + "::" + func + "(): " + msg;
-#ifdef DEBUG
+  // some exceptions are usual and OK,
+  // always log them, but only in debug level
   syslog(LOG_DEBUG, "%s", text.c_str());
-#endif
   throw DmException(code, text);
 }