Skip to content

Commit 5bb02c3

Browse files
committed
refactor: Add trace log to ensure the VACUUM operation has finished successfully
This was a bit confusing, because I treated a lack of logs as success when in reality my code was calling an empty implementation
1 parent d2a3cf8 commit 5bb02c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/matrix-sdk-sqlite/src/utils.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use matrix_sdk_store_encryption::StoreCipher;
2626
use ruma::{serde::Raw, time::SystemTime, OwnedEventId, OwnedRoomId};
2727
use rusqlite::{limits::Limit, OptionalExtension, Params, Row, Statement, Transaction};
2828
use serde::{de::DeserializeOwned, Serialize};
29-
use tracing::{error, warn};
29+
use tracing::{error, trace, warn};
3030
use zeroize::Zeroize;
3131

3232
use crate::{
@@ -196,6 +196,8 @@ pub(crate) trait SqliteAsyncConnExt {
196196
// We want to know if there is an error with this step during tests.
197197
#[cfg(any(test, debug_assertions))]
198198
return Err(error.into());
199+
} else {
200+
trace!("VACUUM complete");
199201
}
200202

201203
Ok(())

0 commit comments

Comments
 (0)