Skip to content

Commit

Permalink
contrib/internal/httptrace: log error if regex fails
Browse files Browse the repository at this point in the history
This should be logged as an error to let the user know that their
provided regex was faulty and was not able to be loaded
  • Loading branch information
ALX99 committed Aug 7, 2024
1 parent 908da63 commit 70dc76d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/internal/httptrace/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func newConfig() config {
} else if r, err := regexp.Compile(s); err == nil {
c.queryStringRegexp = r
} else {
log.Debug("Could not compile regexp from %s. Using default regexp instead.", envQueryStringRegexp)
log.Error("Could not compile regexp from %s. Using default regexp instead.", envQueryStringRegexp)
}
return c
}

0 comments on commit 70dc76d

Please sign in to comment.