diff --git a/src/rust/liblektor-rs/lektor_unsafe/src/db.rs b/src/rust/liblektor-rs/lektor_unsafe/src/db.rs index 32cb3bdaf96a9a8ad123806cfcf7a9809865846f..bc2e8f7ac685da4abf9ed3f922d9b7dc73352430 100644 --- a/src/rust/liblektor-rs/lektor_unsafe/src/db.rs +++ b/src/rust/liblektor-rs/lektor_unsafe/src/db.rs @@ -24,7 +24,7 @@ pub unsafe extern "C" fn lkt_database_establish_connection( match LktDatabaseConnection::try_new(PathBuf::from(&path[..])) { Ok(db) => Box::leak(Box::new(db)) as *mut _, Err(err) => { - error!("failed to establish connexion to {}: {err}", &path[..]); + error!(target: "DB", "failed to establish connexion to {}: {err}", &path[..]); std::ptr::null_mut() } } @@ -40,7 +40,7 @@ pub unsafe extern "C" fn lkt_database_establish_connection( #[no_mangle] pub unsafe extern "C" fn lkt_database_close_connection(db: *mut LktDatabaseConnection) { if db.is_null() { - error!("can't clost a connexion to a null database!") + error!(target: "DB", "can't clost a connexion to a null database!") } else { let db = Box::from_raw(db); drop(db);