Skip to content

Commit

Permalink
Merge pull request #964 from redHJ/bug
Browse files Browse the repository at this point in the history
expire time change to not required, use default value
  • Loading branch information
wonderflow authored Apr 9, 2019
2 parents f4459e3 + 5504a7a commit 43d2249
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# logkit-community [![Build Status](https://api.travis-ci.org/qiniu/logkit.svg)](http://travis-ci.org/qiniu/logkit) [![Go Report Card](https://goreportcard.com/badge/github.com/qiniu/logkit)](https://goreportcard.com/report/github.com/qiniu/logkit) [![codecov](https://codecov.io/gh/qiniu/logkit/branch/master/graph/badge.svg)](https://codecov.io/gh/qiniu/logkit) [![GoDoc](https://godoc.org/github.com/qiniu/logkit?status.svg)](https://godoc.org/github.com/qiniu/logkit)
# logkit-community [![Build Status](https://api.travis-ci.org/qiniu/logkit.svg)](http://travis-ci.org/qiniu/logkit) [![Go Report Card](https://goreportcard.com/badge/github.com/qiniu/logkit)](https://goreportcard.com/report/github.com/qiniu/logkit) [![codecov](https://codecov.io/gh/qiniu/logkit/branch/master/graph/badge.svg)](https://codecov.io/gh/qiniu/logkit/branch/master) [![GoDoc](https://godoc.org/github.com/qiniu/logkit?status.svg)](https://godoc.org/github.com/qiniu/logkit)

![logkit LOGO](https://raw.githubusercontent.com/qiniu/logkit/master/resources/logo.png)

Expand Down
2 changes: 1 addition & 1 deletion READMECN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# logkit-community(社区版) [![Build Status](https://api.travis-ci.org/qiniu/logkit.svg)](http://travis-ci.org/qiniu/logkit) [![Go Report Card](https://goreportcard.com/badge/github.com/qiniu/logkit)](https://goreportcard.com/report/github.com/qiniu/logkit) [![codecov](https://codecov.io/gh/qiniu/logkit/branch/master/graph/badge.svg)](https://codecov.io/gh/qiniu/logkit) [![GoDoc](https://godoc.org/github.com/qiniu/logkit?status.svg)](https://godoc.org/github.com/qiniu/logkit)
# logkit-community(社区版) [![Build Status](https://api.travis-ci.org/qiniu/logkit.svg)](http://travis-ci.org/qiniu/logkit) [![Go Report Card](https://goreportcard.com/badge/github.com/qiniu/logkit)](https://goreportcard.com/report/github.com/qiniu/logkit) [![codecov](https://codecov.io/gh/qiniu/logkit/branch/master/graph/badge.svg)](https://codecov.io/gh/qiniu/logkit/branch/master) [![GoDoc](https://godoc.org/github.com/qiniu/logkit?status.svg)](https://godoc.org/github.com/qiniu/logkit)

![logkit LOGO](https://raw.githubusercontent.com/qiniu/logkit/master/resources/logo.png)

Expand Down
2 changes: 1 addition & 1 deletion mgr/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ func clusterResetDeleteTest(p *testCluParam) {
respCode, respBody, err := makeRequest(url, http.MethodPost, runnerConf)
assert.NoError(t, err, string(respBody))
assert.Equal(t, http.StatusOK, respCode)
time.Sleep(10 * time.Second)
time.Sleep(15 * time.Second)

// 读取日志发送目的文件,记录日志条数
dataLine := 0
Expand Down
7 changes: 1 addition & 6 deletions reader/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ var (
ChooseOnly: false,
Default: "720h",
DefaultNoUse: false,
Required: true,
Description: "清理元数据的过期时间(submeta_expire)",
CheckRegex: "\\d+[hms]",
ToolTip: `当元数据的文件达到expire时间,则对其进行清理操作。写法为:数字加单位符号,组成字符串duration写法,支持时h、分m、秒s为单位,类似3h(3小时),10m(10分钟),5s(5秒),默认的expire时间是720h,即30天。若最大过期时间(expire)为0s,则不会清理元数据`,
Expand Down Expand Up @@ -360,7 +359,6 @@ var ModeKeyOptions = map[string][]Option{
ChooseOnly: false,
Default: "24h",
DefaultNoUse: false,
Required: true,
Description: "忽略文件的最大过期时间(expire)",
CheckRegex: "\\d+[hms]",
ToolTip: `当日志达到expire时间,则放弃追踪。写法为:数字加单位符号,组成字符串duration写法,支持时h、分m、秒s为单位,类似3h(3小时),10m(10分钟),5s(5秒),默认的expire时间是24h,当expire时间是0s时表示永不过期`,
Expand Down Expand Up @@ -400,7 +398,6 @@ var ModeKeyOptions = map[string][]Option{
ChooseOnly: false,
Default: "0s",
DefaultNoUse: false,
Required: true,
Description: "忽略文件夹内文件的最大过期时间(expire)",
CheckRegex: "\\d+[hms]",
ToolTip: `当文件夹内所有的日志达到expire时间,则放弃追踪。写法为:数字加单位符号,组成字符串duration写法,支持时h、分m、秒s为单位,类似3h(3小时),10m(10分钟),5s(5秒),默认的expire时间是0s,即永不过期`,
Expand All @@ -425,12 +422,10 @@ var ModeKeyOptions = map[string][]Option{
{
KeyName: KeyExpire,
ChooseOnly: false,
Default: "24h",
DefaultNoUse: false,
Required: true,
Description: "忽略文件夹内文件的最大过期时间(expire)",
CheckRegex: "\\d+[hms]",
ToolTip: `当日志/文件夹内所有的日志达到expire时间,则放弃追踪。写法为:数字加单位符号,组成字符串duration写法,支持时h、分m、秒s为单位,类似3h(3小时),10m(10分钟),5s(5秒),默认的expire时间是0s,即永不过期`,
ToolTip: `当日志/文件夹内所有的日志达到expire时间,则放弃追踪。写法为:数字加单位符号,组成字符串duration写法,支持时h、分m、秒s为单位,类似3h(3小时),10m(10分钟),5s(5秒),默认的expire时间,dirx为0s,即永不过期,tailx为24h`,
},
OptionKeySubmetaExpire,
OptionKeyExpireDelete,
Expand Down

0 comments on commit 43d2249

Please sign in to comment.