Skip to content

Commit

Permalink
Switch to env_logger
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jun 11, 2023
1 parent 5ff1713 commit 43a7f76
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 71 deletions.
109 changes: 41 additions & 68 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ serde = { version = "1", features = ["derive"] }

# native:
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tracing-subscriber = "0.3"
env_logger = "0.10"

# web:
[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
// When compiling natively:
#[cfg(not(target_arch = "wasm32"))]
fn main() -> eframe::Result<()> {
// Log to stdout (if you run with `RUST_LOG=debug`).
tracing_subscriber::fmt::init();
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).

let native_options = eframe::NativeOptions::default();
eframe::run_native(
Expand Down

0 comments on commit 43a7f76

Please sign in to comment.