Testing open stream event
This commit is contained in:
parent
223c4bd775
commit
3302cdcd9c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user