From e5717c428009d7702ce5d8bf65217f759f114294 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 14 Sep 2008 00:26:13 +0000 Subject: 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. --- lib/win32/emu.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/win32') 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) { -- cgit v1.2.3