Skip to content

Commit

Permalink
feat: Applying filterByTime filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dbgeek committed Mar 3, 2019
1 parent ff1681a commit d2e9e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logworker/logworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (l *LogWorker) List() []string {
func(page *s3.ListObjectsV2Output, lastPage bool) bool {
for _, val := range page.Contents {
accessLog := strings.Split(*val.Key, "/")[len(strings.Split(*val.Key, "/"))-1]
if l.AccessLogFilter.matcher.MatchString(accessLog) {
if l.AccessLogFilter.matcher.MatchString(accessLog) && l.AccessLogFilter.filterByTime(accessLog) {
accessLogs = append(accessLogs, accessLog)
}
}
Expand Down

0 comments on commit d2e9e71

Please sign in to comment.