Skip to content

Commit

Permalink
Convert lib/resourceusage to use slog (#50311)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstimothy authored Dec 17, 2024
1 parent b5d3685 commit db3985d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resourceusage/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ package resourceusage

import (
"context"
"log/slog"
"time"

"github.com/gravitational/trace"
log "github.com/sirupsen/logrus"

"github.com/gravitational/teleport/api/types"
apievents "github.com/gravitational/teleport/api/types/events"
Expand Down Expand Up @@ -60,7 +60,7 @@ func GetAccessRequestMonthlyUsage(ctx context.Context, alog events.AuditLogger,
case events.AccessRequestCreateEvent:
created[id] = struct{}{}
default:
log.Warnf("Expected event type %q, got %q", events.AccessRequestCreateEvent, ev.GetType())
slog.WarnContext(ctx, "Got unexpected event type", "expected_event", events.AccessRequestCreateEvent, "received_event", ev.GetType())
}
}
if startKey == "" {
Expand Down

0 comments on commit db3985d

Please sign in to comment.