Fixed logging time format in tests.
This commit is contained in:
1 parent
9ff0d2d8e8
commit
880d75fc53
2 files changed
+2
-4
No files matched your search
@@ -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);
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user