[Box Backup-commit] COMMIT r2109 - box/trunk/bin/bbackupd

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Thu Mar 13 21:45:19 GMT 2008


Author: chris
Date: 2008-03-13 21:45:19 +0000 (Thu, 13 Mar 2008)
New Revision: 2109

Modified:
   box/trunk/bin/bbackupd/BackupDaemon.cpp
Log:
Use logging framework rather than printf to log when messages are sent 
to the control client.


Modified: box/trunk/bin/bbackupd/BackupDaemon.cpp
===================================================================
--- box/trunk/bin/bbackupd/BackupDaemon.cpp	2008-03-13 21:41:47 UTC (rev 2108)
+++ box/trunk/bin/bbackupd/BackupDaemon.cpp	2008-03-13 21:45:19 UTC (rev 2109)
@@ -471,12 +471,10 @@
 						{
 							std::string message = *(mMessageList.begin());
 							mMessageList.erase(mMessageList.begin());
-							printf("Sending '%s' to waiting client... ", message.c_str());
+							BOX_TRACE("Sending '" << message << "' to waiting client");
 							message += "\n";
 							rSocket.Write(message.c_str(),
 								message.length());
-
-							printf("done.\n");
 						}
 					}
 					catch (...)




More information about the Boxbackup-commit mailing list