diff --git a/src/lib.rs b/src/lib.rs index 65742d6..653b5e2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -625,7 +625,7 @@ fn convert_row_raw( #[neon::main] fn main(mut cx: ModuleContext) -> NeonResult<()> { - env_logger::init(); + let _ = env_logger::try_init(); cx.export_function("databaseOpen", Database::js_open)?; cx.export_function("databaseOpenWithRpcSync", Database::js_open_with_rpc_sync)?; cx.export_function("databaseInTransaction", Database::js_in_transaction)?;