From 89af8661dac33f18906af7d50468ea16cfc9d258 Mon Sep 17 00:00:00 2001 From: tkucherera Date: Mon, 12 Jun 2023 10:51:29 -0400 Subject: [PATCH] change timestamp log option from -d to -T --- confluent_client/bin/nodeconsole | 4 ++-- confluent_client/doc/man/nodeconsole.ronn | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/confluent_client/bin/nodeconsole b/confluent_client/bin/nodeconsole index a7f5a501..076913be 100755 --- a/confluent_client/bin/nodeconsole +++ b/confluent_client/bin/nodeconsole @@ -43,7 +43,7 @@ argparser.add_option('-t', '--tile', action='store_true', default=False, argparser.add_option('-l', '--log', action='store_true', default=False, help='Enter log replay mode instead of showing a live console') -argparser.add_option('-d', '--dump', action='store_true', default=False, +argparser.add_option('-T', '--Timestamp', action='store_true', default=False, help= 'Dump log in stdout with timestamps') argparser.add_option('-w','--windowed', action='store_true', default=False, @@ -96,7 +96,7 @@ if options.log: logreader.replay_to_console(logname) sys.exit(0) -if options.dump: +if options.Timestamp: logname = args[0] if not os.path.exists(logname) and logname[0] != '/': logname = os.path.join('/var/log/confluent/consoles', logname) diff --git a/confluent_client/doc/man/nodeconsole.ronn b/confluent_client/doc/man/nodeconsole.ronn index 4271a887..44286d4b 100644 --- a/confluent_client/doc/man/nodeconsole.ronn +++ b/confluent_client/doc/man/nodeconsole.ronn @@ -29,6 +29,11 @@ console process which will result in the console window closing. Perform a log reply on the current, local log in /var/log/confluent/consoles. If in collective mode, this only makes sense to use on the current collective manager at this time. + + * `-T`, `--Timestamp`: + Dump the log with Timpstamps on the current, local log in /var/log/confluent/consoles. + If in collective mode, this only makes sense to use on the current collective + manager at this time. * `-w`, `--windowed`: Open terminal windows for each node. The