mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Remove --vv flag
This commit is contained in:
parent
e277b4200f
commit
ff258c0722
2 changed files with 10 additions and 19 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue