{"record":{"id":"7793f2ae633fa214","repo":"denoland/deno","slug":"invalid-log-level-log-level","errorCode":null,"errorMessage":"invalid log level {log_level}","messagePattern":"invalid log level (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/tools/installer/global.rs","lineNumber":940,"sourceCode":"  let mut executable_args = vec![\"run\".to_string()];\n  executable_args.extend_from_slice(&flags.to_permission_args());\n  if let Some(url) = flags.location.as_ref() {\n    executable_args.push(\"--location\".to_string());\n    executable_args.push(url.to_string());\n  }\n  if let Some(deno_lib::args::CaData::File(ca_file)) = &flags.ca_data {\n    executable_args.push(\"--cert\".to_string());\n    executable_args.push(ca_file.to_owned())\n  }\n  if let Some(log_level) = flags.log_level {\n    if log_level == Level::Error {\n      executable_args.push(\"--quiet\".to_string());\n    } else {\n      executable_args.push(\"--log-level\".to_string());\n      let log_level = match log_level {\n        Level::Debug => \"debug\",\n        Level::Info => \"info\",\n        _ => return Err(anyhow!(format!(\"invalid log level {log_level}\"))),\n      };\n      executable_args.push(log_level.to_string());\n    }\n  }\n\n  // we should avoid a default branch here to ensure we continue to cover any\n  // changes to this flag.\n  match flags.type_check_mode {\n    TypeCheckMode::All => executable_args.push(\"--check=all\".to_string()),\n    TypeCheckMode::None => {}\n    TypeCheckMode::Local => executable_args.push(\"--check\".to_string()),\n  }\n\n  for feature in &flags.unstable_config.features {\n    executable_args.push(format!(\"--unstable-{}\", feature));\n  }\n\n  if flags.no_remote {","sourceCodeStart":922,"sourceCodeEnd":958,"githubUrl":"https://github.com/denoland/deno/blob/89f33cbef296a2b287f323d42de54c871fa69c77/cli/tools/installer/global.rs#L922-L958","documentation":"Error \"invalid log level {log_level}\" thrown in denoland/deno.","triggerScenarios":"Thrown at cli/tools/installer/global.rs:940 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"89f33cbef296a2b287f323d42de54c871fa69c77","analyzedAt":"2026-08-16T07:54:21.310Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}