removed check for writeable
caused broken unit tests
This commit is contained in:
parent
b12200fabc
commit
7d50b4aeff
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user