mirror of
https://github.com/anthonyoteri/dredge.git
synced 2026-06-05 23:36:53 -04:00
Replace femme logger with simple_logger
This commit is contained in:
+7
-1
@@ -19,6 +19,7 @@
|
||||
use std::io::{self, Write};
|
||||
|
||||
use clap::Parser;
|
||||
use simple_logger::SimpleLogger;
|
||||
use url::Url;
|
||||
|
||||
use crate::cli::Cli;
|
||||
@@ -62,7 +63,12 @@ async fn main() -> Result<(), DredgeError> {
|
||||
|
||||
// -- Initialize logging
|
||||
let log_level = args.log_level;
|
||||
femme::with_level(log::LevelFilter::from(log_level));
|
||||
SimpleLogger::new()
|
||||
.with_colors(true)
|
||||
.with_utc_timestamps()
|
||||
.with_level(log_level.into())
|
||||
.env()
|
||||
.init()?;
|
||||
|
||||
// -- Parse the given <REGISTRY> argument into a complete URL
|
||||
let registry_url: Url = parse_registry_arg(&args.registry)?;
|
||||
|
||||
Reference in New Issue
Block a user