Skip to content

Commit

Permalink
Limit DB tracing to debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
VyrCossont committed Aug 25, 2023
1 parent 68fab6d commit 14b1c23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DB/Sources/DB/Extensions/DatabasePool+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ extension DatabasePool {
configuration.defaultTransactionKind = .immediate
configuration.observesSuspensionNotifications = true
configuration.prepareDatabase { db in
db.trace { print("🤨 \($0)") }
#if DEBUG
db.trace { print("DB: \($0)") }
#endif

try db.usePassphrase(passphrase())
try db.execute(sql: "PRAGMA cipher_plaintext_header_size = 32")
Expand Down

0 comments on commit 14b1c23

Please sign in to comment.