Permalink
Browse files

Merge pull request #17 from mratzloff/master

#16 Remove fs.exists check for reopen
  • Loading branch information...
2 parents 43657f3 + e812463 commit cce764bee1f5b0dde14bd26481f1378c6d55de10 Bertrand Paquet committed Oct 9, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/log4node.js
View
@@ -69,11 +69,7 @@ function Log4Node(config) {
this.file = config.file;
this.reopen();
sig_listener.on('SIGUSR2', function() {
- fs.exists(this.file, function(exists) {
- if (!exists) {
- this.reopen();
- }
- }.bind(this));
+ this.reopen();
}.bind(this));
this.stream.on('error', function(err) {
console.warn('Unable to write into file : ' + this.file + ' ' + err);

0 comments on commit cce764b

Please sign in to comment.