Skip to content

Commit

Permalink
Fix typos "singers" and "vebosity"
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d committed Jan 16, 2025
1 parent 23d809f commit be2b73e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ pub fn entrypoint() -> Result<()> {
},
}

update_allowed_singers(signers_file, &config)
update_allowed_signers(signers_file, &config)
}

#[tokio::main]
async fn update_allowed_singers(file: &Path, config: &Configuration) -> Result<()> {
async fn update_allowed_signers(file: &Path, config: &Configuration) -> Result<()> {
let start = Instant::now();

let sources = config.sources();
Expand All @@ -201,16 +201,16 @@ async fn update_allowed_singers(file: &Path, config: &Configuration) -> Result<(
Ok(())
}

fn setup_tracing(vebosity_level: u8) {
let level = match vebosity_level {
fn setup_tracing(verbosity_level: u8) {
let level = match verbosity_level {
0 => return, // The user did not specify a verbosity level, do not configure tracing.
1 => Level::INFO,
2 => Level::DEBUG,
_ => Level::TRACE,
};
let filter = {
// For verbosity levels of 3 and above, given a debug build, traces from external crates are included.
if vebosity_level > 3 && cfg!(debug_assertions) {
if verbosity_level > 3 && cfg!(debug_assertions) {
tracing_subscriber::filter::EnvFilter::new(format!("{level}"))
} else {
// Otherwise, traces from external crates are filtered.
Expand Down

0 comments on commit be2b73e

Please sign in to comment.