diff --git a/submodules/Postbox/Sources/SqliteValueBox.swift b/submodules/Postbox/Sources/SqliteValueBox.swift index 317cdca45d..745c094015 100644 --- a/submodules/Postbox/Sources/SqliteValueBox.swift +++ b/submodules/Postbox/Sources/SqliteValueBox.swift @@ -590,6 +590,9 @@ public final class SqliteValueBox: ValueBox { postboxLog("isEncrypted prepare done") if statement == nil { postboxLog("isEncrypted: sqlite3_prepare_v2 status = \(status) [\(self.databasePath)]") + if status == 14 { + printOpenFiles() + } return true } if status == SQLITE_NOTADB { diff --git a/submodules/Postbox/Sources/TimeBasedCleanup.swift b/submodules/Postbox/Sources/TimeBasedCleanup.swift index cf848ef16f..1c1a0be7eb 100644 --- a/submodules/Postbox/Sources/TimeBasedCleanup.swift +++ b/submodules/Postbox/Sources/TimeBasedCleanup.swift @@ -34,7 +34,7 @@ public func printOpenFiles() { buf.withUnsafeMutableBytes { buffer -> Void in let _ = fcntl(fd, F_GETPATH, buffer.baseAddress!) let string = String(cString: buffer.baseAddress!.assumingMemoryBound(to: CChar.self)) - print(string) + postboxLog("f: \(string)") } fd += 1