mirror of
https://github.com/Zygo/bees.git
synced 2025-05-18 05:45:45 +02:00
main: use static function to control timestamps in log output
Adjust bees to match changes in Chatter's interface. Signed-off-by: Zygo Blaxell <bees@furryterror.org> (cherry picked from commit 66fd28830d42acbd837dfb08b89a1f9c05c6d474)
This commit is contained in:
parent
78d04b1417
commit
71514e7229
@ -598,7 +598,7 @@ bees_main(int argc, char *argv[])
|
||||
THROW_CHECK1(invalid_argument, argc, argc >= 0);
|
||||
|
||||
// Defaults
|
||||
int chatter_prefix_timestamp = 1;
|
||||
bool chatter_prefix_timestamp = true;
|
||||
|
||||
// Parse options
|
||||
int c;
|
||||
@ -617,10 +617,10 @@ bees_main(int argc, char *argv[])
|
||||
|
||||
switch (c) {
|
||||
case 'T':
|
||||
chatter_prefix_timestamp = 0;
|
||||
chatter_prefix_timestamp = false;
|
||||
break;
|
||||
case 't':
|
||||
chatter_prefix_timestamp = 1;
|
||||
chatter_prefix_timestamp = true;
|
||||
break;
|
||||
case 'h':
|
||||
do_cmd_help(argv);
|
||||
@ -629,7 +629,7 @@ bees_main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
ChatterTimestamp cts(chatter_prefix_timestamp);
|
||||
Chatter::enable_timestamp(chatter_prefix_timestamp);
|
||||
|
||||
// Create a context and start crawlers
|
||||
bool did_subscription = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user