Skip to content

Commit a604d13

Browse files
committed
chore: include err in debug log
1 parent 86925f4 commit a604d13

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cjs/src/pg-notify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class PGPubSub {
151151
})
152152

153153
this.client.on('error', err => {
154-
this._debug('[_setupClient] error')
154+
this._debug('[_setupClient] error', err)
155155

156156
if (this.reconnectRetries > this.reconnectMaxRetries) {
157157
this.close()

src/pg-notify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class PGPubSub {
151151
})
152152

153153
this.client.on('error', err => {
154-
this._debug('[_setupClient] error')
154+
this._debug('[_setupClient] error', err)
155155

156156
if (this.reconnectRetries > this.reconnectMaxRetries) {
157157
this.close()

0 commit comments

Comments
 (0)