diff options
author | Debian QA Group <packages@qa.debian.org> | 2018-03-03 14:08:09 -0500 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2018-03-03 14:08:09 -0500 |
commit | c853116a7a65e724842e00f7e4b6f1b2ae1edb5c (patch) | |
tree | 51ee2768644dd6fd8b4f4693ac1ed657edd2483a /lib | |
parent | d93873567421b74fa3aa4d6297fc998886f47907 (diff) |
adjust-syslog-facility
change default syslog facility from LOG_LOCAL6 to LOG_DAEMON
Gbp-Pq: Name 03-adjust-syslog-facility.diff
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bbstored/BackupStoreDaemon.cpp | 2 | ||||
-rw-r--r-- | lib/common/Logging.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/bbstored/BackupStoreDaemon.cpp b/lib/bbstored/BackupStoreDaemon.cpp index 8fddf125..37b0a6f2 100644 --- a/lib/bbstored/BackupStoreDaemon.cpp +++ b/lib/bbstored/BackupStoreDaemon.cpp @@ -203,7 +203,7 @@ void BackupStoreDaemon::Run() SetProcessTitle("housekeeping, idle"); whichSocket = 1; // Change the log name - ::openlog("bbstored/hk", LOG_PID, LOG_LOCAL6); + ::openlog("bbstored/hk", LOG_PID, LOG_DAEMON); // Log that housekeeping started BOX_INFO("Housekeeping process started"); // Ignore term and hup 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, |