@applitools/logger
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -6,2 +6,7 @@ # Changelog | ||
## 1.0.10 - 2022/2/4 | ||
- increase number of retries and add a delay between them in `fs.rmSync` | ||
- ignore error thrown by `fs.rmSync` in rolling file handler | ||
## 1.0.9 - 2022/1/6 | ||
@@ -8,0 +13,0 @@ |
{ | ||
"name": "@applitools/logger", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Applitools logger", | ||
@@ -58,3 +58,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@applitools/sdk-release-kit": "0.13.10", | ||
"@applitools/sdk-release-kit": "0.13.11", | ||
"eslint": "^7.9.0", | ||
@@ -61,0 +61,0 @@ "eslint-plugin-mocha-no-only": "^1.1.1", |
@@ -23,3 +23,7 @@ const path = require('path') | ||
logFiles.push(filepath) | ||
if (logFiles.length > maxFileNumber) fs.rmSync(logFiles.shift(), {maxRetries: 2}) | ||
if (logFiles.length > maxFileNumber) { | ||
try { | ||
fs.rmSync(logFiles.shift(), {maxRetries: 3, retryDelay: 300}) | ||
} catch (err) {} | ||
} | ||
} | ||
@@ -26,0 +30,0 @@ function close() { |
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
27640
316