Skip to content

Commit 39485f9

Browse files
make default logs when the logs feature is enable to be debug
1 parent 49023f2 commit 39485f9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
#[global_allocator]
55
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
66

7-
// When compiling natively:
87
#[cfg(not(target_arch = "wasm32"))]
98
fn main() -> eframe::Result {
109
use std::sync::Arc;
1110

1211
#[cfg(feature = "logs")]
13-
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
12+
env_logger::init_from_env(env_logger::Env::new().default_filter_or("debug"));
1413

1514
let native_options = eframe::NativeOptions {
1615
viewport: egui::ViewportBuilder::default()
@@ -77,7 +76,6 @@ fn main() -> eframe::Result {
7776
)
7877
}
7978

80-
// When compiling to web using trunk:
8179
#[cfg(target_arch = "wasm32")]
8280
fn main() {
8381
use eframe::wasm_bindgen::JsCast as _;

0 commit comments

Comments
 (0)