winston-daily-rotate-file
Advanced tools
Comparing version 2.0.0-rc.5 to 2.0.0-rc.6
@@ -124,7 +124,9 @@ 'use strict'; | ||
DailyRotateFile.prototype._final = function (callback) { | ||
this.logStream.end(function () { | ||
callback = callback || noop; | ||
callback(); | ||
}); | ||
DailyRotateFile.prototype.close = function () { | ||
var self = this; | ||
if (this.logStream) { | ||
this.logStream.end(function () { | ||
self.emit('finish'); | ||
}); | ||
} | ||
}; | ||
@@ -131,0 +133,0 @@ |
{ | ||
"name": "winston-daily-rotate-file", | ||
"version": "2.0.0-rc.5", | ||
"version": "2.0.0-rc.6", | ||
"description": "A transport for winston which logs to a rotating file each day.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -122,3 +122,3 @@ /* eslint-disable max-nested-callbacks,no-unused-expressions,handle-callback-err */ | ||
this.transport.end(); | ||
this.transport.close(); | ||
}); | ||
@@ -154,3 +154,3 @@ | ||
sendLogItem(this.transport, 'info', randomString(1056)); | ||
self.transport.end(); | ||
self.transport.close(); | ||
}); | ||
@@ -189,3 +189,3 @@ }); | ||
this.transport.end(); | ||
this.transport.close(); | ||
}); | ||
@@ -192,0 +192,0 @@ }); |
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
22674
459