dont double init env_logger

This commit is contained in:
Alex Janka 2024-03-07 12:09:25 +11:00
parent 77e5632856
commit 24af9dd689
5 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View file

@ -713,6 +713,7 @@ version = "0.1.0"
dependencies = [
"clap",
"ctrlc",
"env_logger",
"frontend-common",
"gb-emu-lib",
"log",
@ -1490,7 +1491,6 @@ dependencies = [
"bytemuck",
"chrono",
"cpal",
"env_logger",
"futures",
"gb-emu-lib",
"gilrs",

View file

@ -13,3 +13,4 @@ gb-emu-lib = { workspace = true }
clap = { version = "4.4", features = ["derive"] }
ctrlc = "3.4"
log = { workspace = true }
env_logger = { workspace = true }

View file

@ -124,6 +124,7 @@ impl From<Args> for frontend_common::RunOptions {
}
fn main() {
env_logger::init();
let args = Args::parse();
if let Some(subcommand) = args.command {

View file

@ -29,4 +29,3 @@ image = { version = "0.24", default-features = false, features = ["png"] }
bytemuck = "1.14"
chrono = "0.4"
log = { workspace = true }
env_logger = "0.11.1"

View file

@ -111,7 +111,6 @@ pub fn prepare(
options: RunOptions,
receiver: Receiver<EmulatorMessage<[u8; 4]>>,
) -> PreparedEmulator {
env_logger::init();
let config = CONFIG_MANAGER.load_or_create_base_config();
let standalone_config: StandaloneConfig = CONFIG_MANAGER.load_or_create_config();