Skip to content

Commit

Permalink
updated outputlevel usage to include new variant
Browse files Browse the repository at this point in the history
  • Loading branch information
epi052 committed Nov 9, 2023
1 parent c6ffb6b commit 0385ef1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/scan_manager/scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/scan_manager/scan_container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0385ef1

Please sign in to comment.