Skip to content

Commit

Permalink
Fail build if using the now unsupported env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed Oct 7, 2024
1 parent 8a7ec7a commit 8a131da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions esp-println/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ fn main() {
);
}

if std::env::var("ESP_LOGLEVEL").is_ok() || std::env::var("ESP_LOGFILTER").is_ok() {
panic!("`ESP_LOGLEVEL` and `ESP_LOGFILTER` is not supported anymore. Please use `ESP_LOG` instead.");
}

generate_filter_snippet();

#[cfg(target_os = "windows")]
Expand Down

0 comments on commit 8a131da

Please sign in to comment.