From 54b6c9663ea7772215ffbd8500a15266ba089f06 Mon Sep 17 00:00:00 2001 From: ALX99 <46844683+ALX99@users.noreply.github.com> Date: Wed, 7 Aug 2024 10:42:08 +0900 Subject: [PATCH] contrib/internal/httptrace: log error if regex fails This should be logged as an error to let the user know that theirprovided regex was faulty and was not able to be loaded --- contrib/internal/httptrace/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/internal/httptrace/config.go b/contrib/internal/httptrace/config.go index b545a447ce..691a529400 100644 --- a/contrib/internal/httptrace/config.go +++ b/contrib/internal/httptrace/config.go @@ -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 }