Skip to content

Commit 3efbda9

Browse files
committed
Fix matchPattern log level to be like debug messages - otherwise all the
other messages logged at loglevel 4 get overwhelmed.
1 parent 89ed457 commit 3efbda9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/router/template/router.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ func matchValues(s string, allowedValues ...string) bool {
208208
}
209209

210210
func matchPattern(pattern, s string) bool {
211-
glog.V(4).Infof("matchPattern called with %s and %s", pattern, s)
211+
glog.V(5).Infof("matchPattern called with %s and %s", pattern, s)
212212
status, err := regexp.MatchString("^("+pattern+")$", s)
213213
if err == nil {
214-
glog.V(4).Infof("matchPattern returning status: %v", status)
214+
glog.V(5).Infof("matchPattern returning status: %v", status)
215215
return status
216216
}
217217
glog.Errorf("Error with regex pattern in call to matchPattern: %v", err)

0 commit comments

Comments
 (0)