Small changes, updated dependencies.
This commit is contained in:
+5
-7
@@ -338,7 +338,7 @@ fn setup_logger(opt_matches: &Matches, console_attached: bool) {
|
||||
level = LevelFilter::Trace;
|
||||
}
|
||||
let mut builder = ConfigBuilder::new();
|
||||
builder.add_filter_ignore_str("mio::poll")
|
||||
let config = builder.add_filter_ignore_str("mio::poll")
|
||||
.add_filter_ignore_str("rustls::client")
|
||||
.add_filter_ignore_str("ureq::")
|
||||
.set_thread_level(LevelFilter::Error)
|
||||
@@ -346,12 +346,10 @@ 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 digits:3]"));
|
||||
let config = match builder.set_time_offset_to_local() {
|
||||
Ok(config) => config,
|
||||
Err(config) => config
|
||||
};
|
||||
let config = config.build();
|
||||
.set_time_format_custom(format_description!("[hour]:[minute]:[second].[subsecond digits:3]"))
|
||||
.set_time_offset_to_local()
|
||||
.unwrap_or_else(|config| config)
|
||||
.build();
|
||||
match opt_matches.opt_str("l") {
|
||||
None => {
|
||||
if console_attached {
|
||||
|
||||
Reference in New Issue
Block a user