diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-09-13 15:12:17 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-09-13 15:12:17 +0000 |
commit | 2a7911e5fffaa4b67a86550f30afb0911fb176bf (patch) | |
tree | 96c47b1ead1489880ccd0b00f9da22e0cba71ca1 /bin | |
parent | b2a85e250ae595266fba001c9889fe8a3ee660e3 (diff) |
Use logging tagger to identify clients during connections, both
in syslog and on the console.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/bbstored/BackupStoreDaemon.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/bbstored/BackupStoreDaemon.cpp b/bin/bbstored/BackupStoreDaemon.cpp index f7be3d3b..4de0a078 100644 --- a/bin/bbstored/BackupStoreDaemon.cpp +++ b/bin/bbstored/BackupStoreDaemon.cpp @@ -321,7 +321,10 @@ void BackupStoreDaemon::Connection2(SocketStreamTLS &rStream) } // 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); |