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
theirprovided regex was faulty and was not able to be loaded
  • Loading branch information
ALX99 committed Aug 7, 2024
1 parent 6674e13 commit 54b6c96
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 54b6c96

Please sign in to comment.