Improve logging

This commit is contained in:
Pekka Enberg
2023-05-09 10:51:14 +03:00
parent 5ce2bc41f9
commit 41bed41544

View File

@@ -52,6 +52,7 @@ pub unsafe extern "C" fn MVCCDatabaseOpen(path: *const std::ffi::c_char) -> MVCC
pub unsafe extern "C" fn MVCCDatabaseClose(db: MVCCDatabaseRef) {
tracing::debug!("MVCCDatabaseClose");
if db.is_null() {
tracing::debug!("warning: `db` is null in MVCCDatabaseClose()");
return;
}
let _ = unsafe { Box::from_raw(db.get_ref_mut()) };