From: James Harper Date: Mon, 4 May 2009 05:56:19 +0000 (+0000) Subject: Added extra logging to determine the exchange server in use X-Git-Tag: Release-3.0.2~274 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8179f0243c601976e118f0ba1a6cedca60dcdfd;p=bacula%2Fbacula Added extra logging to determine the exchange server in use git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8790 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/win32/filed/plugins/service_node.c b/bacula/src/win32/filed/plugins/service_node.c index 4309bc5a5e..03b89125b3 100644 --- a/bacula/src/win32/filed/plugins/service_node.c +++ b/bacula/src/win32/filed/plugins/service_node.c @@ -48,6 +48,7 @@ bRC service_node_t::startBackupFile(exchange_fd_context_t *context, struct save_pkt *sp) { HRESULT result; + char aname[256]; _DebugMessage(100, "startBackupNode_SERVICE state = %d\n", state); switch(state) @@ -61,6 +62,8 @@ service_node_t::startBackupFile(exchange_fd_context_t *context, struct save_pkt // convert name to a wide string _DebugMessage(100, "Calling HrESEBackupPrepare\n"); + wcstombs(aname, context->computer_name, 256); + _JobMessage(M_INFO, "Preparing Exchange Backup for %s\n", aname); result = HrESEBackupPrepare(context->computer_name, PLUGIN_PATH_PREFIX_SERVICE_W, &ibi_count, &ibi, &hccx); if (result != 0) {