File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,6 @@ fn health() -> String {
268268// Launch the rocket server.
269269#[ launch]
270270async fn rocket ( ) -> _ {
271-
272271 setup_tracing_subscriber ( ) ;
273272
274273 let s3_client = S3ClientImpl :: new ( ) . await . expect ( "s3 client" ) ;
@@ -305,14 +304,12 @@ async fn rocket() -> _ {
305304
306305fn setup_tracing_subscriber ( ) {
307306 let default_filter = "info" ; // Default log level if RUST_LOG is not set
308- let env_filter = EnvFilter :: try_from_default_env ( )
309- . unwrap_or_else ( |_| EnvFilter :: new ( default_filter) ) ;
307+ let env_filter =
308+ EnvFilter :: try_from_default_env ( ) . unwrap_or_else ( |_| EnvFilter :: new ( default_filter) ) ;
310309 // Initialize the tracing subscriber with JSON format and no ANSI colors for non-local.
311310 // For local, use standard formatting. Both respect RUST_LOG.
312311 if env:: var ( "RUN_ENV" ) . unwrap_or_default ( ) == "local" {
313- tracing_subscriber:: fmt ( )
314- . with_env_filter ( env_filter)
315- . init ( ) ;
312+ tracing_subscriber:: fmt ( ) . with_env_filter ( env_filter) . init ( ) ;
316313 } else {
317314 tracing_subscriber:: fmt ( )
318315 . json ( )
You can’t perform that action at this time.
0 commit comments