Skip to content

Commit

Permalink
fix: fix rotate file error on up dep goutil
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jun 13, 2022
1 parent ec794cb commit d2fe7d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
- 更多内置实现请查看 ./handler 文件夹
- 输出日志到指定文件
- 支持启用 `buffer` 缓冲日志写入
- 支持按时间、按大小分割文件
- 支持按时间、按大小自动分割文件
- 支持配置通过 `gzip` 压缩日志文件
- 支持清理旧日志文件 配置: `BackupNum` `BackupTime`

Expand Down
2 changes: 1 addition & 1 deletion handler/rotate_file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func TestNewSizeRotateFileHandler(t *testing.T) {
func TestNewTimeRotateFileHandler_EveryDay(t *testing.T) {
logfile := "./testdata/time-rotate_EveryDay.log"
assert.NoError(t, fsutil.DeleteIfFileExist(logfile))
newFile := logfile + timex.Now().DateFormat(".YMD")
newFile := logfile + timex.Now().DateFormat(".Ymd")
assert.NoError(t, fsutil.DeleteIfFileExist(newFile))

sec := -2
Expand Down

0 comments on commit d2fe7d2

Please sign in to comment.