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