summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-03-24 23:45:04 +0000
committerChris Wilson <chris+github@qwirx.com>2007-03-24 23:45:04 +0000
commit6085a460fa1943df13188b6def02716a48357b06 (patch)
tree99c4c92490b10d86ca7f7ca36f3d44ad2b87ed23 /bin
parent718b0a1122e0067187d991b52927c1eeef68ec50 (diff)
Use logging framework to remove timer noise for those who don't want it.
(refs #3, merges [1448])
Diffstat (limited to 'bin')
-rw-r--r--bin/bbackupd/BackupClientContext.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/bbackupd/BackupClientContext.cpp b/bin/bbackupd/BackupClientContext.cpp
index 516c88bc..c18bcfd6 100644
--- a/bin/bbackupd/BackupClientContext.cpp
+++ b/bin/bbackupd/BackupClientContext.cpp
@@ -29,6 +29,7 @@
#include "BackupDaemon.h"
#include "autogen_BackupProtocolClient.h"
#include "BackupStoreFile.h"
+#include "Logging.h"
#include "MemLeakFindOn.h"
@@ -499,13 +500,14 @@ bool BackupClientContext::FindFilename(int64_t ObjectID, int64_t ContainingDirec
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 @@ void BackupClientContext::DoKeepAlive()
return;
}
- TRACE0("KeepAliveTime reached, sending keep-alive message\n");
+ BOX_TRACE("KeepAliveTime reached, sending keep-alive message");
mpConnection->QueryGetIsAlive();
mKeepAliveTimer = Timer(mKeepAliveTime);