From: František Dvořák Date: Sat, 22 Feb 2014 22:11:56 +0000 (+0100) Subject: Always log exceptions to syslog, in debug level. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=de639a45f006fafc56e3bbda018640f1e11c52a1;p=dmlite-plugins-vfs.git Always log exceptions to syslog, in debug level. --- diff --git a/src/Throw.cpp b/src/Throw.cpp index 02e5688..286d73f 100644 --- a/src/Throw.cpp +++ b/src/Throw.cpp @@ -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); }