Fixed logging time format in tests.

pull/259/head
Revertron 2 years ago
parent 9ff0d2d8e8
commit 880d75fc53

@ -1128,9 +1128,7 @@ pub mod tests {
.set_target_level(LevelFilter::Error)
.set_level_padding(LevelPadding::Right)
.set_time_level(LevelFilter::Error)
.set_time_format_custom(format_description!("[hour]:[minute]:[second].[subsecond]"))
.set_time_offset_to_local()
.unwrap()
.set_time_format_custom(format_description!("[hour]:[minute]:[second].[subsecond digits:3]"))
.build();
if let Err(e) = TermLogger::init(LevelFilter::Trace, config, TerminalMode::Stdout, ColorChoice::Auto) {
println!("Unable to initialize logger!\n{}", e);

@ -261,7 +261,7 @@ fn setup_logger(opt_matches: &Matches, console_attached: bool) {
.set_target_level(LevelFilter::Error)
.set_level_padding(LevelPadding::Right)
.set_time_level(LevelFilter::Error)
.set_time_format_custom(format_description!("[hour]:[minute]:[second].[subsecond]"))
.set_time_format_custom(format_description!("[hour]:[minute]:[second].[subsecond digits:3]"))
.set_time_offset_to_local()
.unwrap()
.build();

Loading…
Cancel
Save