removed check for writeable

caused broken unit tests
This commit is contained in:
Ryan Wilson 2014-06-20 13:23:09 -07:00
parent b12200fabc
commit 7d50b4aeff

View File

@ -48,13 +48,13 @@ BaseRollingFileStream.prototype._write = function(chunk, encoding, callback) {
function writeTheChunk() { function writeTheChunk() {
debug("writing the chunk to the underlying stream"); debug("writing the chunk to the underlying stream");
that.currentSize += chunk.length; that.currentSize += chunk.length;
if(that.theStream.writeable) { console.log(that.theStream);
try { try {
that.theStream.write(chunk, encoding, callback); that.theStream.write(chunk, encoding, callback);
} }
catch (err){ catch (err){
callback(); debug(err);
} callback();
} }
} }