Remove --vv flag

This commit is contained in:
ByteDream 2023-04-23 13:21:50 +02:00
parent e277b4200f
commit ff258c0722
2 changed files with 10 additions and 19 deletions

View file

@ -50,7 +50,6 @@ pub(crate) use tab_info;
#[allow(clippy::type_complexity)]
pub struct CliLogger {
all: bool,
level: LevelFilter,
progress: Mutex<Option<ProgressBar>>,
}
@ -64,7 +63,7 @@ impl Log for CliLogger {
if !self.enabled(record.metadata())
|| (record.target() != "progress"
&& record.target() != "progress_end"
&& (!self.all && !record.target().starts_with("crunchy_cli")))
&& !record.target().starts_with("crunchy_cli"))
{
return;
}
@ -95,17 +94,16 @@ impl Log for CliLogger {
}
impl CliLogger {
pub fn new(all: bool, level: LevelFilter) -> Self {
pub fn new(level: LevelFilter) -> Self {
Self {
all,
level,
progress: Mutex::new(None),
}
}
pub fn init(all: bool, level: LevelFilter) -> Result<(), SetLoggerError> {
pub fn init(level: LevelFilter) -> Result<(), SetLoggerError> {
set_max_level(level);
set_boxed_logger(Box::new(CliLogger::new(all, level)))
set_boxed_logger(Box::new(CliLogger::new(level)))
}
fn extended(&self, record: &Record) {