mirror of
https://github.com/Zygo/bees.git
synced 2025-05-18 13:55:44 +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>
This commit is contained in:
parent
85106bd9a9
commit
66fd28830d
@ -612,7 +612,7 @@ bees_main(int argc, char *argv[])
|
|||||||
THROW_CHECK1(invalid_argument, argc, argc >= 0);
|
THROW_CHECK1(invalid_argument, argc, argc >= 0);
|
||||||
|
|
||||||
// Defaults
|
// Defaults
|
||||||
int chatter_prefix_timestamp = 1;
|
bool chatter_prefix_timestamp = true;
|
||||||
|
|
||||||
// Parse options
|
// Parse options
|
||||||
int c;
|
int c;
|
||||||
@ -631,10 +631,10 @@ bees_main(int argc, char *argv[])
|
|||||||
|
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'T':
|
case 'T':
|
||||||
chatter_prefix_timestamp = 0;
|
chatter_prefix_timestamp = false;
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
chatter_prefix_timestamp = 1;
|
chatter_prefix_timestamp = true;
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
do_cmd_help(argv);
|
do_cmd_help(argv);
|
||||||
@ -643,7 +643,7 @@ bees_main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatterTimestamp cts(chatter_prefix_timestamp);
|
Chatter::enable_timestamp(chatter_prefix_timestamp);
|
||||||
|
|
||||||
// There can be only one because we measure running time with it
|
// There can be only one because we measure running time with it
|
||||||
bees_ioctl_lock_set.max_size(1);
|
bees_ioctl_lock_set.max_size(1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user