Log warnings from COPY TO
This commit is contained in:
parent
a075965214
commit
0ee426172f
@ -53,6 +53,7 @@ module.exports = class StreamCopy {
|
||||
if (action === ACTION_TO) {
|
||||
pgstream.on('end', () => done());
|
||||
pgstream.on('error', () => this._cancel(client.processID, action));
|
||||
pgstream.on('warning', (msg) => this.logger.warn(msg));
|
||||
} else if (action === ACTION_FROM) {
|
||||
pgstream.on('finish', () => done());
|
||||
pgstream.on('error', err => client.connection.sendCopyFail(err.message));
|
||||
|
Loading…
Reference in New Issue
Block a user