Testing open stream event

This commit is contained in:
cgonzalez 2021-03-22 20:04:11 +00:00
parent 223c4bd775
commit 3302cdcd9c

View File

@ -335,6 +335,8 @@ function ExportRequest (ostream, callback, beforeSink) {
logger.info({ custom: true }, 'Destroying stream');
that.istream.destroy();
}
}).on('open', function() {
logger.info({ custom: true }, 'Open a stream');
});
}
@ -355,7 +357,7 @@ ExportRequest.prototype.sendFile = function (err, filename, callback) {
}
logger.info({ custom: true }, 'Sending file: on open');
logger.info({ custom: true, destroyed: that.ostream.destroyed }, 'Ostream');
logger.info({ custom: true, isdestroyed: that.ostream.destroyed }, 'Ostream');
that.istream
.pipe(that.ostream)