File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -137,15 +137,15 @@ async fn ethereum(
137137}
138138
139139pub async fn start ( args : impl Iterator < Item = String > ) {
140+ observe:: panic_hook:: install ( ) ;
140141 let args = Arguments :: parse_from ( args) ;
141142 let obs_config = observe:: Config :: new (
142143 args. shared . logging . log_filter . as_str ( ) ,
143144 args. shared . logging . log_stderr_threshold ,
144145 args. shared . logging . use_json_logs ,
145146 tracing_config ( & args. shared . tracing , "autopilot" . into ( ) ) ,
146147 ) ;
147- observe:: tracing:: initialize ( & obs_config) ;
148- observe:: panic_hook:: install ( ) ;
148+ observe:: tracing:: initialize_reentrant ( & obs_config) ;
149149
150150 let commit_hash = option_env ! ( "VERGEN_GIT_SHA" ) . unwrap_or ( "COMMIT_INFO_NOT_FOUND" ) ;
151151
Original file line number Diff line number Diff line change @@ -61,16 +61,16 @@ use {
6161} ;
6262
6363pub async fn start ( args : impl Iterator < Item = String > ) {
64+ observe:: panic_hook:: install ( ) ;
6465 let args = Arguments :: parse_from ( args) ;
6566 let obs_config = observe:: Config :: new (
6667 args. shared . logging . log_filter . as_str ( ) ,
6768 args. shared . logging . log_stderr_threshold ,
6869 args. shared . logging . use_json_logs ,
6970 tracing_config ( & args. shared . tracing , "orderbook" . into ( ) ) ,
7071 ) ;
71- observe:: tracing:: initialize ( & obs_config) ;
72+ observe:: tracing:: initialize_reentrant ( & obs_config) ;
7273 tracing:: info!( "running order book with validated arguments:\n {}" , args) ;
73- observe:: panic_hook:: install ( ) ;
7474 observe:: metrics:: setup_registry ( Some ( "gp_v2_api" . into ( ) ) , None ) ;
7575 run ( args) . await ;
7676}
You can’t perform that action at this time.
0 commit comments