This commit is contained in:
Nikita Sivukhin
2025-09-18 01:35:09 +04:00
parent 66de28d84b
commit 1d3c823c7b
11 changed files with 72 additions and 69 deletions

View File

@@ -6,7 +6,7 @@ pub mod js_protocol_io;
use std::{
collections::HashMap,
sync::{Arc, Mutex, MutexGuard, OnceLock, RwLock, RwLockReadGuard},
sync::{Arc, Mutex, OnceLock, RwLock, RwLockReadGuard},
};
use napi::bindgen_prelude::{AsyncTask, Either5, Null};
@@ -149,6 +149,8 @@ impl SyncEngine {
pub fn new(opts: SyncEngineOpts) -> napi::Result<Self> {
// helpful for local debugging
match opts.tracing.as_deref() {
Some("error") => init_tracing(LevelFilter::ERROR),
Some("warn") => init_tracing(LevelFilter::WARN),
Some("info") => init_tracing(LevelFilter::INFO),
Some("debug") => init_tracing(LevelFilter::DEBUG),
Some("trace") => init_tracing(LevelFilter::TRACE),