fix(logging): default to errors only in all build modes

Honor the request for quiet default logging by showing only errors in
both debug and release builds. Previously, development builds logged at
debug level and release builds at info level.

Set the default filter to error in the core logger, WebAssembly logger,
and GTK demo. Keep the existing RUST_LOG overrides in the native logger
and demo so users can enable more detail when troubleshooting. WebAssembly
continues to use a fixed filter without an environment override.

Update logger comments to describe the new default.

Test Plan:
- Passed: cargo test -p ghostty-core global::tests --lib (3 tests).
- Passed: git diff --check.
- Manual: launch without RUST_LOG and confirm only errors are logged;
  use RUST_LOG=debug to confirm native verbose logging remains available.
- WebAssembly and the GTK demo were not built or run.

Requested-by: User request for errors-only default logging
This commit is contained in:
ddidderr committed 2026-10-12 21:28:43 +02:00
1 parent 8590af5a6c
commit 4fb9faa667
3 files changed
+6 -13

No files matched your search

+1 -1
View File
@@ -340,7 +340,7 @@ impl CoreApp for DemoApp {
}
fn main() {
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init();
env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("error")).init();
let core = Rc::new(DemoApp::default());
let app = App::new(core);