1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-05-08 04:59:37 +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)
Dieser Commit ist enthalten in:
Zygo Blaxell
2017-11-11 14:49:53 -05:00
Ursprung 78d04b1417
Commit 71514e7229
+4 -4
Datei anzeigen
@@ -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;