From 7d50b4aeff8d48d4597c09aa7953a57ad80989b2 Mon Sep 17 00:00:00 2001 From: Ryan Wilson Date: Fri, 20 Jun 2014 13:23:09 -0700 Subject: [PATCH] removed check for writeable caused broken unit tests --- lib/streams/BaseRollingFileStream.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/streams/BaseRollingFileStream.js b/lib/streams/BaseRollingFileStream.js index 26de2b0..3f872ed 100644 --- a/lib/streams/BaseRollingFileStream.js +++ b/lib/streams/BaseRollingFileStream.js @@ -48,13 +48,13 @@ BaseRollingFileStream.prototype._write = function(chunk, encoding, callback) { function writeTheChunk() { debug("writing the chunk to the underlying stream"); that.currentSize += chunk.length; - if(that.theStream.writeable) { - try { - that.theStream.write(chunk, encoding, callback); - } - catch (err){ - callback(); - } + console.log(that.theStream); + try { + that.theStream.write(chunk, encoding, callback); + } + catch (err){ + debug(err); + callback(); } }