From 62f2dd7c6c89ca44f2096f535962b63f26f57730 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Sat, 19 Oct 2024 20:53:10 -0400 Subject: Remove ability to panic on pre-initialized logger in rust Typically this would never occur, however due to the mystical nature of linkers this somehow has happened outside of demo builds --- view/bintxt/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view') diff --git a/view/bintxt/src/lib.rs b/view/bintxt/src/lib.rs index 96cd1835..fbf3682d 100644 --- a/view/bintxt/src/lib.rs +++ b/view/bintxt/src/lib.rs @@ -12,7 +12,7 @@ use std::ops::Range; #[no_mangle] #[allow(non_snake_case)] pub extern "C" fn CorePluginInit() -> bool { - binaryninja::logger::init(log::LevelFilter::Error).expect("Unable to initialize logger"); + binaryninja::logger::init(log::LevelFilter::Error); binaryninja::custombinaryview::register_view_type(c"ti-txt", c"TI-TXT", |core| { TiTxtViewConstructor { core } -- cgit v1.3.1