Skip to content

Commit 4cdd2b4

Browse files
fix: silence sqlcipher logs except for ERROR level
Set default SQLCipher cipher_log_level to ERROR so only error-level messages are emitted. The SQLCIPHER_LOG=true env var still overrides to INFO for debugging purposes. Resolves #3257 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ee06124 commit 4cdd2b4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

crates/xmtp_db/src/encrypted_store/database/native/sqlcipher_connection.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ impl super::ValidatedConnection for EncryptedConnection {
301301
if is_sqlcipher_log_enabled {
302302
conn.batch_execute("PRAGMA cipher_log = stderr; PRAGMA cipher_log_level = INFO;")
303303
.ok();
304+
} else {
305+
conn.batch_execute("PRAGMA cipher_log = stderr; PRAGMA cipher_log_level = ERROR;")
306+
.ok();
304307
}
305308
tracing::debug!("SQLCipher Database validated.");
306309
Ok(())

0 commit comments

Comments
 (0)