From 0385ef1cf0e3844570d9e94a1c74bed8d56563de Mon Sep 17 00:00:00 2001 From: epi Date: Wed, 8 Nov 2023 20:19:59 -0500 Subject: [PATCH] updated outputlevel usage to include new variant --- src/scan_manager/scan.rs | 4 ++-- src/scan_manager/scan_container.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scan_manager/scan.rs b/src/scan_manager/scan.rs index 3de12b79..f2798169 100644 --- a/src/scan_manager/scan.rs +++ b/src/scan_manager/scan.rs @@ -175,7 +175,7 @@ impl FeroxScan { let bar_type = match self.output_level { OutputLevel::Default => BarType::Default, OutputLevel::Quiet => BarType::Quiet, - OutputLevel::Silent => BarType::Hidden, + OutputLevel::Silent | OutputLevel::SilentJSON => BarType::Hidden, }; let pb = add_bar(&self.url, self.num_requests, bar_type); @@ -194,7 +194,7 @@ impl FeroxScan { let bar_type = match self.output_level { OutputLevel::Default => BarType::Default, OutputLevel::Quiet => BarType::Quiet, - OutputLevel::Silent => BarType::Hidden, + OutputLevel::Silent | OutputLevel::SilentJSON => BarType::Hidden, }; let pb = add_bar(&self.url, self.num_requests, bar_type); diff --git a/src/scan_manager/scan_container.rs b/src/scan_manager/scan_container.rs index 080d9dc7..fc985b55 100644 --- a/src/scan_manager/scan_container.rs +++ b/src/scan_manager/scan_container.rs @@ -516,7 +516,7 @@ impl FeroxScans { let bar_type = match self.output_level { OutputLevel::Default => BarType::Message, OutputLevel::Quiet => BarType::Quiet, - OutputLevel::Silent => return Ok(()), // fast exit when --silent was used + OutputLevel::Silent | OutputLevel::SilentJSON => return Ok(()), // fast exit when --silent was used }; if let Ok(scans) = self.scans.read() { @@ -609,7 +609,7 @@ impl FeroxScans { let bar_type = match self.output_level { OutputLevel::Default => BarType::Default, OutputLevel::Quiet => BarType::Quiet, - OutputLevel::Silent => BarType::Hidden, + OutputLevel::Silent | OutputLevel::SilentJSON => BarType::Hidden, }; let progress_bar = add_bar(url, bar_length, bar_type);