diff options
author | Reinhard Tartler <siretart@tauware.de> | 2009-03-31 21:43:58 +0200 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2019-07-20 00:50:07 -0400 |
commit | 864df510d403eee80d378bef7be3746a3fdd8e40 (patch) | |
tree | b3c54141e5c24bcbaba566f6247c7628af234f87 /lib/common | |
parent | d50f542209f3b5c27358fab6e8e3b575534b7b3a (diff) |
change default syslog facility from LOG_LOCAL6 to LOG_DAEMON
Gbp-Pq: Name 03-adjust-syslog-facility.diff
Diffstat (limited to 'lib/common')
-rw-r--r-- | lib/common/Logging.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/common/Logging.cpp b/lib/common/Logging.cpp index 0928a4d4..1cff1762 100644 --- a/lib/common/Logging.cpp +++ b/lib/common/Logging.cpp @@ -411,7 +411,7 @@ bool Syslog::Log(Log::Level level, const std::string& file, int line, return true; } -Syslog::Syslog() : mFacility(LOG_LOCAL6) +Syslog::Syslog() : mFacility(LOG_DAEMON) { ::openlog("Box Backup", LOG_PID, mFacility); } @@ -454,8 +454,8 @@ int Syslog::GetNamedFacility(const std::string& rFacility) #undef CASE_RETURN BOX_ERROR("Unknown log facility '" << rFacility << "', " - "using default LOCAL6"); - return LOG_LOCAL6; + "using default DAEMON"); + return LOG_DAEMON; } bool FileLogger::Log(Log::Level Level, const std::string& file, int line, |