diff options
author | Chris Wilson <chris+github@qwirx.com> | 2012-05-03 13:41:28 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2012-05-03 13:41:28 +0000 |
commit | 02f21ebefb9d219d6ba3b7d5c14335a8da9c6227 (patch) | |
tree | 934eae2abf339fb4fe02a8206e4107aeaeb2d5b6 /bin/bbstored/HousekeepStoreAccount.cpp | |
parent | ee4de841e21d3737433d0868ba3661f0cc831224 (diff) |
Tag housekeeping logging with the account number and name.
Diffstat (limited to 'bin/bbstored/HousekeepStoreAccount.cpp')
-rw-r--r-- | bin/bbstored/HousekeepStoreAccount.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/bbstored/HousekeepStoreAccount.cpp b/bin/bbstored/HousekeepStoreAccount.cpp index 166a58e6..dde813f9 100644 --- a/bin/bbstored/HousekeepStoreAccount.cpp +++ b/bin/bbstored/HousekeepStoreAccount.cpp @@ -122,6 +122,12 @@ void HousekeepStoreAccount::DoHousekeeping(bool KeepTryingForever) BackupStoreInfo::Load(mAccountID, mStoreRoot, mStoreDiscSet, true /* Read Only */)); + // Tag log output to identify account + std::ostringstream tag; + tag << "hk/" << BOX_FORMAT_ACCOUNT(mAccountID) << "/" << + info->GetAccountName(); + Logging::Tagger tagWithClientID(tag.str()); + // Calculate how much should be deleted mDeletionSizeTarget = info->GetBlocksUsed() - info->GetBlocksSoftLimit(); if(mDeletionSizeTarget < 0) |