diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-03-22 23:27:18 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-03-22 23:27:18 +0000 |
commit | 961baf88f51f0c58f1de373b5bcf5eb551403bc9 (patch) | |
tree | a3885e8f5d426070ff259dfeaed66b4aa802d60d | |
parent | eee4907406d6292b215a2d7453cfaa144a3da336 (diff) |
Log at trace level by default in debug builds (refs #3)
-rw-r--r-- | lib/server/Daemon.cpp | 6 |
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) |