From 961baf88f51f0c58f1de373b5bcf5eb551403bc9 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 22 Mar 2007 23:27:18 +0000 Subject: Log at trace level by default in debug builds (refs #3) --- lib/server/Daemon.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') 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) -- cgit v1.2.3