diff --git a/internal/component/loki/process/stages/regex.go b/internal/component/loki/process/stages/regex.go index 27c7daf38..29fe56125 100644 --- a/internal/component/loki/process/stages/regex.go +++ b/internal/component/loki/process/stages/regex.go @@ -112,7 +112,7 @@ func (r *regexStage) Process(labels model.LabelSet, extracted map[string]interfa extracted[name] = match[i] } } - if level.Debug(r.logger).Enabled() { + if level.DebugValue() { level.Debug(r.logger).Log("msg", "extracted data debug in regex stage", "extracted data", fmt.Sprintf("%v", extracted)) } }