summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-03-22 23:27:18 +0000
committerChris Wilson <chris+github@qwirx.com>2007-03-22 23:27:18 +0000
commit961baf88f51f0c58f1de373b5bcf5eb551403bc9 (patch)
treea3885e8f5d426070ff259dfeaed66b4aa802d60d /lib
parenteee4907406d6292b215a2d7453cfaa144a3da336 (diff)
Log at trace level by default in debug builds (refs #3)
Diffstat (limited to 'lib')
-rw-r--r--lib/server/Daemon.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/server/Daemon.cpp b/lib/server/Daemon.cpp
index f50a9c9a..07ca705b 100644
--- a/lib/server/Daemon.cpp
+++ b/lib/server/Daemon.cpp
@@ -101,7 +101,13 @@ int Daemon::Main(const char *DefaultConfigFile, int argc, const char *argv[])
mConfigFileName = DefaultConfigFile;
bool haveConfigFile = false;
bool singleProcess = false;
+
+ #ifdef NDEBUG
int masterLevel = Log::NOTICE; // need an int to do math with
+ #else
+ int masterLevel = Log::TRACE; // need an int to do math with
+ #endif
+
char c;
while((c = getopt(argc, (char * const *)argv, "c:Dqv")) != -1)