Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor logger options to support multiple skip path regexps
- Modify the `main.go` file by replacing `logger.WithSkipPathRegexp(rxURL)` with `logger.WithSkipPathRegexps(rxURL)` - Remove the line `assert.Equal(t, 400, resp.Code)` from the `logger_test.go` file - Remove the line `assert.Equal(t, 502, resp.Code)` from the `logger_test.go` file - Modify the `logger_test.go` file by replacing `WithSkipPathRegexp(rxURL)` with `WithSkipPathRegexps(rxURL)` - Modify the `logger_test.go` file by replacing `WithSkipPathRegexp(rxURL)` with `WithSkipPathRegexps(rxURL)` - Remove the function `WithSkipPathRegexp(reg *regexp.Regexp)` from the `options.go` file - Modify the function `WithSkipPathRegexps(regs []*regexp.Regexp)` in the `options.go` file by changing the parameter to `regs ...*regexp.Regexp` - Modify the function `WithSkipPathRegexps(regs []*regexp.Regexp)` in the `options.go` file by changing the parameter to `regs ...*regexp.Regexp` - Modify the function `WithSkipPathRegexps(regs []*regexp.Regexp)` in the `options.go` file by changing the parameter to `regs ...*regexp.Regexp` Signed-off-by: Bo-Yi Wu <[email protected]>
- Loading branch information