[Box Backup-dev] COMMIT r659 - box/chris/general/bin/bbackupctl

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Wed Jul 19 20:29:15 BST 2006


Author: chris
Date: 2006-07-19 19:29:15 +0000 (Wed, 19 Jul 2006)
New Revision: 659

Modified:
   box/chris/general/bin/bbackupctl/bbackupctl.cpp
Log:
* bbackupctl.cpp
- Presumably in quiet mode, we don't want to see informational messages,
  so disabled them.


Modified: box/chris/general/bin/bbackupctl/bbackupctl.cpp
===================================================================
--- box/chris/general/bin/bbackupctl/bbackupctl.cpp	2006-07-19 19:28:20 UTC (rev 658)
+++ box/chris/general/bin/bbackupctl/bbackupctl.cpp	2006-07-19 19:29:15 UTC (rev 659)
@@ -292,12 +292,12 @@
 		{
 			if(line == "start-sync")
 			{
-				printf("Sync started...\n");
+				if (!quiet) printf("Sync started...\n");
 				syncIsRunning = true;
 			}
 			else if(line == "finish-sync" && syncIsRunning)
 			{
-				printf("Sync finished.\n");
+				if (!quiet) printf("Sync finished.\n");
 				// Send a quit command to finish nicely
 				connection.Write("quit\n", 5);
 				
@@ -306,7 +306,7 @@
 			}
 			else if(line == "finish-sync")
 			{
-				printf("Previous sync finished.\n");
+				if (!quiet) printf("Previous sync finished.\n");
 			}
 			// daemon must still be busy
 		}




More information about the Boxbackup-dev mailing list