Skip to content

Commit

Permalink
Merge pull request #38 from libsql/lucio/fix-env-logger
Browse files Browse the repository at this point in the history
Allow env_logger to be called multiple times
  • Loading branch information
penberg committed Sep 23, 2023
2 parents 3ffd5d2 + 97ed8de commit 4e126bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 4e126bf

Please sign in to comment.