Updated dependencies.

This commit is contained in:
Revertron
2022-05-12 15:17:25 +02:00
parent 410bc9b7e4
commit e9aad8905c
3 changed files with 51 additions and 21 deletions
+5 -4
View File
@@ -11,7 +11,7 @@ use std::{env, thread};
use getopts::{Matches, Options};
#[allow(unused_imports)]
use log::{debug, error, info, trace, warn, LevelFilter};
use simplelog::*;
use simplelog::{ColorChoice, CombinedLogger, ConfigBuilder, format_description, LevelPadding, TerminalMode, TermLogger, WriteLogger};
#[cfg(windows)]
use winapi::um::wincon::{AttachConsole, FreeConsole, ATTACH_PARENT_PROCESS};
extern crate lazy_static;
@@ -259,10 +259,11 @@ fn setup_logger(opt_matches: &Matches, console_attached: bool) {
.set_thread_level(LevelFilter::Error)
.set_location_level(LevelFilter::Off)
.set_target_level(LevelFilter::Error)
.set_time_level(LevelFilter::Error)
.set_time_format_str("%F %T%.3f")
.set_time_to_local(true)
.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()
.build();
match opt_matches.opt_str("l") {
None => {