diff --git a/base/sysloglogger.cpp b/base/sysloglogger.cpp index 974d1248d..8b9e79c59 100644 --- a/base/sysloglogger.cpp +++ b/base/sysloglogger.cpp @@ -7,11 +7,9 @@ using namespace icinga; * * @param minSeverity Minimum severity for log messages. */ -SyslogLogger::SyslogLogger(const string& ident, LogSeverity minSeverity) +SyslogLogger::SyslogLogger(LogSeverity minSeverity) : Logger(minSeverity) -{ -// openlog(ident.c_str(), 0, LOG_USER); -} +{ } /** * Processes a log entry and outputs it to syslog. diff --git a/base/sysloglogger.h b/base/sysloglogger.h index ff2483928..f7676e36f 100644 --- a/base/sysloglogger.h +++ b/base/sysloglogger.h @@ -10,7 +10,7 @@ namespace icinga class SyslogLogger : public Logger { public: - SyslogLogger(const string& ident, LogSeverity minSeverity); + SyslogLogger(LogSeverity minSeverity); protected: virtual void ProcessLogEntry(const LogEntry& entry); diff --git a/icinga/icingaapplication.cpp b/icinga/icingaapplication.cpp index bc2ab91b5..248cdeae4 100644 --- a/icinga/icingaapplication.cpp +++ b/icinga/icingaapplication.cpp @@ -39,7 +39,7 @@ int IcingaApplication::Main(const vector& args) ConsoleLogger::Ptr consoleLogger = boost::make_shared(LogInformation); Logger::RegisterLogger(consoleLogger); - SyslogLogger::Ptr syslogLogger = boost::make_shared("icinga", LogDebug); + SyslogLogger::Ptr syslogLogger = boost::make_shared(LogInformation); Logger::RegisterLogger(syslogLogger); #ifdef _WIN32