Comparing version 1.1.0 to 1.1.1
@@ -28,3 +28,5 @@ // Generated by CoffeeScript 1.10.0 | ||
return function(error) { | ||
console.error("Tail error:" + error); | ||
if (_this.logger) { | ||
_this.logger.error("Tail error:" + error); | ||
} | ||
return _this.emit('error', error); | ||
@@ -65,6 +67,7 @@ }; | ||
this.readBlock = bind(this.readBlock, this); | ||
console.info("Tail starting:"); | ||
console.info("filename:", this.filename); | ||
console.info("options:", options); | ||
this.separator = (ref = options.separator) != null ? ref : /[\r]{0,1}\n/, this.fsWatchOptions = (ref1 = options.fsWatchOptions) != null ? ref1 : {}, this.fromBeginning = (ref2 = options.fromBeginning) != null ? ref2 : false, this.follow = (ref3 = options.follow) != null ? ref3 : true; | ||
this.separator = (ref = options.separator) != null ? ref : /[\r]{0,1}\n/, this.fsWatchOptions = (ref1 = options.fsWatchOptions) != null ? ref1 : {}, this.fromBeginning = (ref2 = options.fromBeginning) != null ? ref2 : false, this.follow = (ref3 = options.follow) != null ? ref3 : true, this.logger = options.logger; | ||
if (this.logger) { | ||
this.logger.info("Tail starting:"); | ||
this.logger.info("filename:", this.filename); | ||
} | ||
this.buffer = ''; | ||
@@ -134,3 +137,5 @@ this.internalDispatcher = new events.EventEmitter(); | ||
} else { | ||
console.error("'rename' event for " + this.filename + ". File not available."); | ||
if (this.logger) { | ||
this.logger.error("'rename' event for " + this.filename + ". File not available."); | ||
} | ||
return this.emit("error", "'rename' event for " + this.filename + ". File not available."); | ||
@@ -137,0 +142,0 @@ } |
@@ -9,3 +9,3 @@ { | ||
"description": "tail a file in node", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"homepage": "http://www.lucagrulla.com/node-tail", | ||
@@ -12,0 +12,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8963
5
157