Skip to content

Commit

Permalink
kolide transport: use same logrus import
Browse files Browse the repository at this point in the history
  • Loading branch information
sechmann committed Jun 24, 2024
1 parent 8957bb1 commit 6214101
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/apiserver/kolide/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"time"

"github.com/nais/device/internal/apiserver/metrics"
"github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
)

Expand Down Expand Up @@ -47,7 +46,7 @@ func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) {
return resp, nil
}
retryAfter := t.getRetryAfter(resp.Header)
log.WithFields(logrus.Fields{
log.WithFields(log.Fields{
"attempt": attempt + 1,
"max_attempts": t.MaxHttpRetries,
"response": resp.Status,
Expand All @@ -74,7 +73,7 @@ func (t *Transport) getRetryAfter(header http.Header) time.Duration {
return 0
}

log.WithFields(logrus.Fields{
log.WithFields(log.Fields{
"limit": limit,
"remaining": remaining,
"reset": reset,
Expand Down

0 comments on commit 6214101

Please sign in to comment.