[Box Backup-commit] COMMIT r1448 - box/chris/general/bin/bbackupd
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Sat Mar 24 14:42:08 GMT 2007
Author: chris
Date: 2007-03-24 14:42:08 +0000 (Sat, 24 Mar 2007)
New Revision: 1448
Modified:
box/chris/general/bin/bbackupd/BackupClientContext.cpp
Log:
Use logging framework to remove timer noise for those who don't want it
Modified: box/chris/general/bin/bbackupd/BackupClientContext.cpp
===================================================================
--- box/chris/general/bin/bbackupd/BackupClientContext.cpp 2007-03-24 14:41:36 UTC (rev 1447)
+++ box/chris/general/bin/bbackupd/BackupClientContext.cpp 2007-03-24 14:42:08 UTC (rev 1448)
@@ -29,6 +29,7 @@
#include "BackupDaemon.h"
#include "autogen_BackupProtocolClient.h"
#include "BackupStoreFile.h"
+#include "Logging.h"
#include "MemLeakFindOn.h"
@@ -499,13 +500,14 @@
void BackupClientContext::SetMaximumDiffingTime(int iSeconds)
{
mMaximumDiffingTime = iSeconds < 0 ? 0 : iSeconds;
- TRACE1("Set maximum diffing time to %d seconds\n", mMaximumDiffingTime);
+ BOX_TRACE("Set maximum diffing time to " << mMaximumDiffingTime <<
+ " seconds");
}
void BackupClientContext::SetKeepAliveTime(int iSeconds)
{
mKeepAliveTime = iSeconds < 0 ? 0 : iSeconds;
- TRACE1("Set keep-alive time to %d seconds\n", mKeepAliveTime);
+ BOX_TRACE("Set keep-alive time to " << mKeepAliveTime << " seconds");
mKeepAliveTimer = Timer(mKeepAliveTime);
}
@@ -563,7 +565,7 @@
return;
}
- TRACE0("KeepAliveTime reached, sending keep-alive message\n");
+ BOX_TRACE("KeepAliveTime reached, sending keep-alive message");
mpConnection->QueryGetIsAlive();
mKeepAliveTimer = Timer(mKeepAliveTime);
More information about the Boxbackup-commit
mailing list