Skip to content

Commit

Permalink
Make logger initialization condition for better composition.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Jun 28, 2023
1 parent 56a91c7 commit f284e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2440,7 +2440,7 @@ impl UiExtra for egui::Ui {

#[cfg(not(target_arch = "wasm32"))]
pub fn start(data_sources: Vec<Box<dyn DeferredDataSource>>) {
env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
env_logger::try_init().unwrap_or(()); // 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 f284e31

Please sign in to comment.