generated from PlexSheep/baserepo
refactor(cli): cli example was weird
This commit is contained in:
parent
87dc2871d7
commit
b382b3e501
|
@ -23,17 +23,7 @@ struct Cli {
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let cli = Cli::parse();
|
let cli = Cli::parse();
|
||||||
let _logger = {
|
let _logger = Logger::builder().set_level(cli.verbosity.level()).build();
|
||||||
let mut this = {
|
|
||||||
let mut this = Logger::builder();
|
|
||||||
let max_level = cli.verbosity.level();
|
|
||||||
this.max_level = max_level;
|
|
||||||
this
|
|
||||||
};
|
|
||||||
this.show_time = false;
|
|
||||||
this
|
|
||||||
}
|
|
||||||
.build();
|
|
||||||
|
|
||||||
debug!("logger initialized with level: {}", cli.verbosity.level());
|
debug!("logger initialized with level: {}", cli.verbosity.level());
|
||||||
|
|
||||||
|
|
Reference in New Issue