Merge pull request #1651 from MatejKozlovsky/cli-warn-logging

CLI: log warnings to stderr by default
This commit is contained in:
BFlat
2026-10-30 00:09:39 +07:00
committed by GitHub
2 changed files with 34 additions and 6 deletions
+3
View File
@@ -279,6 +279,9 @@ fn utf8_args(raw: impl IntoIterator<Item = std::ffi::OsString>) -> Result<Vec<St
}
fn main() {
// Warnings and errors to standard error (`RUST_LOG` overrides), so a GPU that declines
// frames or runs out of memory says so instead of silently rendering on the CPU.
effectcraft_engine::logging::install_with("warn");
let raw = match utf8_args(std::env::args_os().skip(1)) {
Ok(raw) => raw,
Err(e) => fail_usage(&e),