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 /lib/win32 | |
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 'lib/win32')
-rw-r--r-- | lib/win32/emu.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/win32/emu.cpp b/lib/win32/emu.cpp index 5a61fc3f..aeacf344 100644 --- a/lib/win32/emu.cpp +++ b/lib/win32/emu.cpp @@ -1417,9 +1417,8 @@ void openlog(const char * daemonName, int, int) { } - char* name = strdup(daemonName); - BOOL success = AddEventSource(name, 0); - free(name); + std::string name = "Box Backup (" + daemonName + ")"; + BOOL success = AddEventSource(name.c_str(), 0); if (!success) { |