winston-daily-rotate-file
Advanced tools
Comparing version 3.3.3 to 3.3.4
@@ -99,2 +99,7 @@ 'use strict'; | ||
this.logStream.on('rotate', function (oldFile) { | ||
var oldFileExist = fs.existsSync(oldFile); | ||
var gzExist = fs.existsSync(oldFile + '.gz'); | ||
if (!oldFileExist || gzExist) { | ||
return; | ||
} | ||
var gzip = zlib.createGzip(); | ||
@@ -101,0 +106,0 @@ var inp = fs.createReadStream(oldFile); |
{ | ||
"name": "winston-daily-rotate-file", | ||
"version": "3.3.3", | ||
"version": "3.3.4", | ||
"description": "A transport for winston which logs to a rotating file each day.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
27095
538