remove verbose opt

This commit is contained in:
DataHearth 2022-03-16 13:49:01 +01:00
parent 869c922a1b
commit d462d3be88
No known key found for this signature in database
GPG Key ID: E88FD356ACC5F3C4
1 changed files with 1 additions and 8 deletions

View File

@ -31,10 +31,6 @@ struct Args {
#[clap(long, takes_value = false)]
dry_run: bool,
/// add more logs [default: false]
#[clap(short, long, takes_value = false)]
verbose: bool,
/// where is located the docker socket (can be a UNIX socket or TCP protocol)
#[clap(short, long, default_value = "/var/run/docker.sock")]
socket: String,
@ -51,10 +47,7 @@ async fn main() {
let args = Args::parse();
let logger = SimpleLogger::new()
.without_timestamps()
.with_level(match args.verbose {
true => log::LevelFilter::Debug,
false => log::LevelFilter::Info,
});
.with_level(log::LevelFilter::Info);
if let Some(e) = logger.init().err() {
eprintln!("failed to initialize logger: {}", e);