egg-logrotator
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -79,3 +79,7 @@ 'use strict'; | ||
if (!files.has(srcPath)) { | ||
const targetPath = srcPath + moment().subtract(1, 'days').format('.YYYY-MM-DD'); | ||
// allow 2 minutes deviation | ||
const targetPath = srcPath + moment() | ||
.subtract(23, 'hours') | ||
.subtract(58, 'minutes') | ||
.format('.YYYY-MM-DD'); | ||
debug('set file %s => %s', srcPath, targetPath); | ||
@@ -82,0 +86,0 @@ files.set(srcPath, { srcPath, targetPath }); |
3.0.5 / 2018-12-04 | ||
================== | ||
**fixes** | ||
* [[`3371e60`](http://github.com/eggjs/egg-logrotator/commit/3371e609c29385ef73093abb9cbdcccc88e8f9b0)] - fix: allow 2 minutes deviation on schedule cron (#22) (fengmk2 <<fengmk2@gmail.com>>) | ||
3.0.4 / 2018-10-24 | ||
@@ -3,0 +9,0 @@ ================== |
{ | ||
"name": "egg-logrotator", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "logrotator for egg", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
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
25959
380