Skip to content

Commit

Permalink
[desktop] Disable MEMORY sqlcipher logs
Browse files Browse the repository at this point in the history
  • Loading branch information
charlag committed Feb 21, 2025
1 parent 91710b8 commit b282bba
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/common/desktop/db/DesktopSqlCipher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,13 @@ export class DesktopSqlCipher implements SqlCipherFacade {
// integrity check breaks tests
integrityCheck: boolean
}) {
if (env.mode === Mode.Test) {
this.db.pragma("cipher_log_source = NONE")
}
// disable MEMORY sqlcipher logs
// see https://github.com/tutao/tutanota/issues/8589
this.db.pragma("cipher_log_source = NONE")
this.db.pragma("cipher_log_source = CORE")
this.db.pragma("cipher_log_source = PROVIDER")
this.db.pragma("cipher_log_source = MUTEX")

if (enableMemorySecurity) {
this.db.pragma("cipher_memory_security = ON")
}
Expand Down

0 comments on commit b282bba

Please sign in to comment.