egg-logrotator
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -77,3 +77,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); | ||
@@ -80,0 +84,0 @@ files.set(srcPath, { srcPath, targetPath }); |
2.3.3 / 2018-12-05 | ||
================== | ||
**fixes** | ||
* [[`5b4ac09`](http://github.com/eggjs/egg-logrotator/commit/5b4ac09d8a8e30a8412a85cb35066584d1ab0721)] - fix: allow 2 minutes deviation on schedule cron (#23) (fengmk2 <<fengmk2@gmail.com>>) | ||
2.3.2 / 2018-05-09 | ||
@@ -3,0 +9,0 @@ ================== |
{ | ||
"name": "egg-logrotator", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "logrotator for egg", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
24567
367