summaryrefslogtreecommitdiff
path: root/infrastructure/buildenv-testmain-template.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-09-13 15:11:35 +0000
committerChris Wilson <chris+github@qwirx.com>2008-09-13 15:11:35 +0000
commitb2a85e250ae595266fba001c9889fe8a3ee660e3 (patch)
tree21aac6f0a579676d12a30568986580732b57881a /infrastructure/buildenv-testmain-template.cpp
parent1ba40180e9740a151ddc1a23bb497ade403ec103 (diff)
Unify program name and console logging tags.
Add a new class, Logging::Tagger, which can be used to temporarily add information to the program name, such as the client ID in bbstored.
Diffstat (limited to 'infrastructure/buildenv-testmain-template.cpp')
-rw-r--r--infrastructure/buildenv-testmain-template.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp
index 661c0100..14b31b27 100644
--- a/infrastructure/buildenv-testmain-template.cpp
+++ b/infrastructure/buildenv-testmain-template.cpp
@@ -257,7 +257,8 @@ int main(int argc, char * const * argv)
case 't':
{
- Console::SetTag(optarg);
+ Logging::SetProgramName(optarg);
+ Console::SetShowTag(true);
}
break;