Skip to content

Commit 9393500

Browse files
Do not log config as it may leak credentials in logs
1 parent 0edbf02 commit 9393500

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/connection.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ export class SQLiteCloudConnection {
5151
this.transport = new transport.WebSocketTransport()
5252
this.transport.connect(this.config, error => {
5353
if (error) {
54-
console.error(`SQLiteCloudConnection.connect - error while connecting WebSocketTransport: ${error.toString()}`, this.config, error)
54+
console.error(
55+
`SQLiteCloudConnection.connect - error while connecting WebSocketTransport: ${error.toString()} to ${this.config.host}:${this.config.port}`,
56+
error
57+
)
5558
this.close()
5659
}
5760
callback?.call(this, error || null)
@@ -68,7 +71,10 @@ export class SQLiteCloudConnection {
6871
this.transport = new transport.TlsSocketTransport()
6972
this.transport.connect(this.config, error => {
7073
if (error) {
71-
console.error(`SQLiteCloudConnection.connect - error while connecting TlsSocketTransport: ${error.toString()}`, this.config, error)
74+
console.error(
75+
`SQLiteCloudConnection.connect - error while connecting TlsSocketTransport: ${error.toString()} to ${this.config.host}:${this.config.port}`,
76+
error
77+
)
7278
this.close()
7379
}
7480
callback?.call(this, error || null)

0 commit comments

Comments
 (0)