git://scientific.zcu.cz
/
dmlite-plugins-vfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac353a0
)
Always log exceptions to syslog, in debug level.
author
František Dvořák
<valtri@civ.zcu.cz>
Sat, 22 Feb 2014 22:11:56 +0000
(23:11 +0100)
committer
František Dvořák
<valtri@civ.zcu.cz>
Sat, 22 Feb 2014 22:11:56 +0000
(23:11 +0100)
src/Throw.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/Throw.cpp
b/src/Throw.cpp
index
02e5688
..
286d73f
100644
(file)
--- 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);
}