From de639a45f006fafc56e3bbda018640f1e11c52a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 22 Feb 2014 23:11:56 +0100 Subject: [PATCH] Always log exceptions to syslog, in debug level. --- src/Throw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 1.8.2.3