From b58831e5eec4d0595099b8e9c2979b157fe37041 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 25 Oct 2008 15:50:08 +0200 Subject: ConsoleLogger kann jetzt ?ber Konfigurationsdateien aktiviert werden --- src/mad-core.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/mad-core.cpp') diff --git a/src/mad-core.cpp b/src/mad-core.cpp index 02be19c..19c8b05 100644 --- a/src/mad-core.cpp +++ b/src/mad-core.cpp @@ -19,7 +19,6 @@ #include "Common/ConfigManager.h" #include "Common/Logger.h" -#include "Common/Backends/ConsoleLogger.h" #include "Common/Backends/SystemBackendPosix.h" #include "Common/Backends/SystemBackendProc.h" #include "Net/Connection.h" @@ -37,14 +36,12 @@ int main() { sigaddset(&signals, SIGPIPE); sigprocmask(SIG_BLOCK, &signals, 0); - Common::Backends::ConsoleLogger logger; - Common::Logger::registerLogger(&logger); - Common::Logger::initConfigHelper(); Core::ConnectionManager::init(); Common::ConfigManager::getConfigManager()->loadFile("mad-core.conf"); + Common::ConfigManager::getConfigManager()->finish(); Common::Backends::SystemBackendPosix::registerBackend(); Common::Backends::SystemBackendProc::registerBackend(); -- cgit v1.2.3