diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-09-14 00:26:13 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-09-14 00:26:13 +0000 |
commit | e5717c428009d7702ce5d8bf65217f759f114294 (patch) | |
tree | 142ac1a7068bf73166560f7921ec3b6213b5a079 /bin/bbackupd/BackupDaemon.cpp | |
parent | b6dd422728b2adab1d4d2c7a5d477aecc9c37cfa (diff) |
Prefix event log application name with Box Backup, and remove it from
all calls to SetProgramName, for better consistency on Unix.
Make bbstoreaccounts and bbackupctl set their program names for logging.
Don't override supplied tag with service name when BackupDaemon
is run as a service.
Diffstat (limited to 'bin/bbackupd/BackupDaemon.cpp')
-rw-r--r-- | bin/bbackupd/BackupDaemon.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp index a17870ed..12e5fcd2 100644 --- a/bin/bbackupd/BackupDaemon.cpp +++ b/bin/bbackupd/BackupDaemon.cpp @@ -335,6 +335,7 @@ int BackupDaemon::ProcessOption(signed int option) case 'S': { mServiceName = optarg; + Logging::SetProgramName(mServiceName); return 0; } @@ -369,8 +370,6 @@ int BackupDaemon::Main(const std::string &rConfigFileName) return RemoveService(mServiceName); } - Logging::SetProgramName("Box Backup (" + mServiceName + ")"); - int returnCode; if (mRunAsService) |