Skip to content

Commit 01782ad

Browse files
committed
set logger from db
1 parent bc9109a commit 01782ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/PostgreSQL/Database/PostgreSQLDatabase.swift

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public final class PostgreSQLDatabase: Database {
1717
public func makeConnection(using connectionConfig: PostgreSQLConnectionConfig, on worker: Worker) -> Future<PostgreSQLConnection> {
1818
do {
1919
let client = try PostgreSQLConnection.connect(hostname: config.hostname, port: config.port, on: worker)
20+
client.logger = logger
2021
return client.authenticate(username: config.username).transform(to: client)
2122
} catch {
2223
return Future(error: error)

0 commit comments

Comments
 (0)