From 2e761f8a7744f18059e2048f319f4cac8e32d765 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 29 Mar 2008 01:56:39 +0000 Subject: Replace all remaining use of TRACEx() macros with logging framework. Remove the old TRACEx macros to catch any remaining uses. --- bin/bbstored/BBStoreDHousekeeping.cpp | 3 ++- bin/bbstored/BackupContext.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/bbstored') diff --git a/bin/bbstored/BBStoreDHousekeeping.cpp b/bin/bbstored/BBStoreDHousekeeping.cpp index 16a1432a..4694c0bb 100644 --- a/bin/bbstored/BBStoreDHousekeeping.cpp +++ b/bin/bbstored/BBStoreDHousekeeping.cpp @@ -193,7 +193,8 @@ bool BackupStoreDaemon::CheckForInterProcessMsg(int AccountNum, int MaximumWaitT std::string line; if(mInterProcessComms.GetLine(line, false /* no pre-processing */, MaximumWaitTime)) { - TRACE1("Housekeeping received command '%s' over interprocess comms\n", line.c_str()); + BOX_TRACE("Housekeeping received command '" << line << + "' over interprocess comms"); int account = 0; diff --git a/bin/bbstored/BackupContext.cpp b/bin/bbstored/BackupContext.cpp index f956b1a8..af1c9475 100644 --- a/bin/bbstored/BackupContext.cpp +++ b/bin/bbstored/BackupContext.cpp @@ -382,7 +382,8 @@ int64_t BackupContext::AllocateObjectID() // Mark that the store info should be saved as soon as possible mSaveStoreInfoDelay = 0; - TRACE1("When allocating object ID, found that %lld is already in use\n", id); + BOX_WARNING("When allocating object ID, found that " << + BOX_FORMAT_OBJECTID(id) << " is already in use"); } THROW_EXCEPTION(BackupStoreException, CouldNotFindUnusedIDDuringAllocation) -- cgit v1.2.3