diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-09-26 20:20:17 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-09-26 20:20:17 +0000 |
commit | c6289871eb68458810d8e8f895767719f919cf88 (patch) | |
tree | 3a7ea193336a3a0967a9548139675f1fc41fa904 /lib/server | |
parent | 9eaef6dfa70cef6c1788cfe746dbd40d9de4eed6 (diff) |
Set console and syslog logging levels rather than global logging level,
as we may want to do something different when logging to a file.
Diffstat (limited to 'lib/server')
-rw-r--r-- | lib/server/Daemon.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/server/Daemon.cpp b/lib/server/Daemon.cpp index 5196a06a..2d319f38 100644 --- a/lib/server/Daemon.cpp +++ b/lib/server/Daemon.cpp @@ -342,7 +342,8 @@ int Daemon::Main(const char *DefaultConfigFile, int argc, const char *argv[]) return 2; } - Logging::SetGlobalLevel((Log::Level)mLogLevel); + Logging::FilterConsole((Log::Level)mLogLevel); + Logging::FilterSyslog ((Log::Level)mLogLevel); return Main(mConfigFileName); } |