diff --git a/support/render/problem/problem.go b/support/render/problem/problem.go index 6efb69664d..7efea6a400 100644 --- a/support/render/problem/problem.go +++ b/support/render/problem/problem.go @@ -175,7 +175,7 @@ func (ps *Problem) Render(ctx context.Context, w http.ResponseWriter, err error) // If this error is not a registered error // log it and replace it with a 500 error if !ok { - if ps.filter == LogUnknownErrors { + if ps.filter != LogNoErrors { ps.log.Ctx(ctx).WithStack(err).Error(err) } if ps.reportFn != nil {