[Box Backup-commit] COMMIT r2280 - box/trunk/bin/bbstored
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Sat, 13 Sep 2008 16:12:18 +0100 (BST)
Author: chris
Date: 2008-09-13 16:12:17 +0100 (Sat, 13 Sep 2008)
New Revision: 2280
Modified:
box/trunk/bin/bbstored/BackupStoreDaemon.cpp
Log:
Use logging tagger to identify clients during connections, both
in syslog and on the console.
Modified: box/trunk/bin/bbstored/BackupStoreDaemon.cpp
===================================================================
--- box/trunk/bin/bbstored/BackupStoreDaemon.cpp 2008-09-13 15:11:35 UTC (rev 2279)
+++ box/trunk/bin/bbstored/BackupStoreDaemon.cpp 2008-09-13 15:12:17 UTC (rev 2280)
@@ -321,7 +321,10 @@
}
// Make ps listings clearer
- SetProcessTitle("client %08x", id);
+ std::ostringstream tag;
+ tag << "client=" << BOX_FORMAT_ACCOUNT(id);
+ SetProcessTitle(tag.str().c_str());
+ Logging::Tagger tagWithClientID(tag.str());
// Create a context, using this ID
BackupStoreContext context(id, *this);