Skip to content

Commit

Permalink
notifier: remove direct zerolog use
Browse files Browse the repository at this point in the history
A debug print was accidentally using zerolog directly.

Signed-off-by: Hank Donnay <hdonnay@redhat.com>
  • Loading branch information
hdonnay committed Apr 21, 2021
1 parent 08734ab commit cc4a10f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions notifier/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/quay/claircore/libvuln/driver"
"github.com/quay/claircore/pkg/distlock"
"github.com/quay/zlog"
"github.com/rs/zerolog/log"
"go.opentelemetry.io/otel/baggage"
"go.opentelemetry.io/otel/label"
"golang.org/x/sync/errgroup"
Expand Down Expand Up @@ -148,7 +147,7 @@ func (p *Processor) create(ctx context.Context, e Event, prev uuid.UUID) error {
}

// Don't count up the affected manifests unless we're going to print it.
if ev := log.Debug(); ev.Enabled() {
if ev := zlog.Debug(ctx); ev.Enabled() {
var added, removed int
for _, n := range tab.N {
switch n.Reason {
Expand Down

0 comments on commit cc4a10f

Please sign in to comment.