Skip to content

Commit c2e4a09

Browse files
committed
Updated log() to print only in Debug mode
1 parent a5e0acb commit c2e4a09

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Sources/SQLiteAdapter/SQLiteAdapter.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ open class SQLite {
9494
}
9595

9696
private func log(_ str: String) {
97+
#if DEBUG
9798
print("SQLite: \(str)")
99+
#endif
98100
}
99101

100102
private func prepareStatement(sql: String) throws -> OpaquePointer? {

0 commit comments

Comments
 (0)