fix: missed rename of debug env vars
@@ -13,21 +13,21 @@ pub fn main() -> anyhow::Result<()> {
// Handle unexpected panics by presenting a user-friendly bug report prompt;
// except when we're requesting debug info from the compiler explicitly, in
// which case we don't want to hide the panic
- if env::var_os("LUMEN_LOG").is_none() {
+ if env::var_os("FIREFLY_LOG").is_none() {
human_panic::setup_panic!();
}
// Initialize logger
- let mut builder = env_logger::Builder::from_env("LUMEN_LOG");
+ let mut builder = env_logger::Builder::from_env("FIREFLY_LOG");
builder.format_indent(Some(2));
- if let Ok(precision) = env::var("LUMEN_LOG_WITH_TIME") {
+ if let Ok(precision) = env::var("FIREFLY_LOG_WITH_TIME") {
match precision.as_str() {
"s" => builder.format_timestamp_secs(),
"ms" => builder.format_timestamp_millis(),
"us" => builder.format_timestamp_micros(),
"ns" => builder.format_timestamp_nanos(),
other => bail!(
- "invalid LUMEN_LOG_WITH_TIME precision, expected one of [s, ms, us, ns], got '{}'",
+ "invalid FIREFLY_LOG_WITH_TIME precision, expected one of [s, ms, us, ns], got '{}'",
other
),
};
@@ -40,7 +40,7 @@ pub fn main() -> anyhow::Result<()> {
let cwd = env::current_dir().map_err(|e| anyhow!("Current directory is invalid: {}", e))?;
// Get the current instant, in case needed for timing later
- let print_timings = env::var("LUMEN_TIMING").is_ok();
+ let print_timings = env::var("FIREFLY_TIMING").is_ok();
let start = Instant::now();
// Run compiler
