diff --git a/lib/models/formats/ogr.js b/lib/models/formats/ogr.js index 37ee612c..acc6f2b7 100644 --- a/lib/models/formats/ogr.js +++ b/lib/models/formats/ogr.js @@ -335,10 +335,8 @@ function ExportRequest (ostream, callback, beforeSink) { logger.info({ custom: true }, 'Destroying stream'); that.istream.destroy(); } - }).on('error', function(e) { - logger.info({ custom: true, errormessage: e }, 'Close stream error'); - }).on('finish', function () { - logger.info({ custom: true }, 'Stream finished'); + }).on('pipe', function(src) { + logger.info({ custom: true, readable: src.readable }, 'Something is piping into the ostream'); }); } @@ -359,7 +357,6 @@ ExportRequest.prototype.sendFile = function (err, filename, callback) { } logger.info({ custom: true }, 'Sending file: on open'); - logger.info({ custom: true, readable: that.ostream.req.readable }, 'Ostream'); that.istream .pipe(that.ostream)