File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ static APP_USER_AGENT: &str = concat!(
2626#[ derive( Parser , Debug ) ]
2727#[ command( author, version, about, long_about = None ) ]
2828struct Cli {
29+ #[ arg( short, long, default_value_t = false ) ]
30+ tokio_console : bool ,
2931 #[ command( subcommand) ]
3032 command : Commands ,
3133}
@@ -444,10 +446,14 @@ async fn run_loop(state: &mut AppState<'_>) -> Result<()> {
444446
445447#[ tokio:: main]
446448async fn main ( ) -> Result < ( ) > {
447- console_subscriber:: init ( ) ;
448449 env_logger:: init ( ) ;
449450 let args = Cli :: parse ( ) ;
450451
452+ if args. tokio_console {
453+ eprintln ! ( "Starting console-subscriber" ) ;
454+ console_subscriber:: init ( ) ;
455+ }
456+
451457 let mut secrets = Secrets :: new ( ) . await ?;
452458
453459 let mut state = AppState {
You can’t perform that action at this time.
0 commit comments