@@ -104,7 +104,7 @@ async fn gather_instruments_info(
104
104
105
105
pub async fn run_tardis_machine_replay_from_config ( config_filepath : & Path ) -> anyhow:: Result < ( ) > {
106
106
tracing:: info!( "Starting replay" ) ;
107
- tracing:: info!( "Config filepath: {}" , config_filepath . display ( ) ) ;
107
+ tracing:: info!( "Config filepath: {config_filepath:?}" ) ;
108
108
109
109
let config_data = fs:: read_to_string ( config_filepath) . expect ( "Failed to read config file" ) ;
110
110
let config: TardisReplayConfig =
@@ -122,7 +122,7 @@ pub async fn run_tardis_machine_replay_from_config(config_filepath: &Path) -> an
122
122
} )
123
123
. unwrap_or_else ( || std:: env:: current_dir ( ) . expect ( "Failed to get current directory" ) ) ;
124
124
125
- tracing:: info!( "Output path: {}" , path . display ( ) ) ;
125
+ tracing:: info!( "Output path: {path:?}" ) ;
126
126
127
127
let normalize_symbols = config. normalize_symbols . unwrap_or ( true ) ;
128
128
tracing:: info!( "normalize_symbols={normalize_symbols}" ) ;
@@ -416,9 +416,9 @@ fn batch_and_write_bars(bars: Vec<Bar>, bar_type: &BarType, date: NaiveDate, pat
416
416
} ;
417
417
418
418
let filepath = path. join ( parquet_filepath_bars ( bar_type, date) ) ;
419
- match write_batch_to_parquet ( batch, & filepath, None ) {
420
- Ok ( ( ) ) => tracing:: info!( "File written: {}" , filepath . display ( ) ) ,
421
- Err ( e) => tracing:: error!( "Error writing {}: {e:?}" , filepath . display ( ) ) ,
419
+ match write_batch_to_parquet ( batch, & filepath, None , None ) {
420
+ Ok ( ( ) ) => tracing:: info!( "File written: {filepath:?}" ) ,
421
+ Err ( e) => tracing:: error!( "Error writing {filepath:? }: {e:?}" ) ,
422
422
}
423
423
}
424
424
@@ -449,9 +449,9 @@ fn write_batch(
449
449
path : & Path ,
450
450
) {
451
451
let filepath = path. join ( parquet_filepath ( typename, instrument_id, date) ) ;
452
- match write_batch_to_parquet ( batch, & filepath, None ) {
453
- Ok ( ( ) ) => tracing:: info!( "File written: {}" , filepath . display ( ) ) ,
454
- Err ( e) => tracing:: error!( "Error writing {}: {e:?}" , filepath . display ( ) ) ,
452
+ match write_batch_to_parquet ( batch, & filepath, None , None ) {
453
+ Ok ( ( ) ) => tracing:: info!( "File written: {filepath:?}" ) ,
454
+ Err ( e) => tracing:: error!( "Error writing {filepath:? }: {e:?}" ) ,
455
455
}
456
456
}
457
457
0 commit comments