Testing more events

This commit is contained in:
cgonzalez 2021-03-23 11:14:01 +00:00
parent 41e22df257
commit 2c1700b3bd

View File

@ -335,10 +335,8 @@ function ExportRequest (ostream, callback, beforeSink) {
logger.info({ custom: true }, 'Destroying stream'); logger.info({ custom: true }, 'Destroying stream');
that.istream.destroy(); that.istream.destroy();
} }
}).on('error', function(e) { }).on('pipe', function(src) {
logger.info({ custom: true, errormessage: e }, 'Close stream error'); logger.info({ custom: true, readable: src.readable }, 'Something is piping into the ostream');
}).on('finish', function () {
logger.info({ custom: true }, 'Stream finished');
}); });
} }
@ -359,7 +357,6 @@ ExportRequest.prototype.sendFile = function (err, filename, callback) {
} }
logger.info({ custom: true }, 'Sending file: on open'); logger.info({ custom: true }, 'Sending file: on open');
logger.info({ custom: true, readable: that.ostream.req.readable }, 'Ostream');
that.istream that.istream
.pipe(that.ostream) .pipe(that.ostream)