Skip to content

Commit

Permalink
POST-147: added logging of token length.
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikoppen committed Nov 23, 2022
1 parent 15040c4 commit a45885f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions go/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,12 @@ func (c Client) FetchEvents(ctx context.Context, cursors []Cursor, pageSizeHint
return err
}

token := req.Header.Get("Authorization")
c.logger.WithFields(logrus.Fields{
"event": "zeroeventhub.token_check",
"tokenLength": strconv.Itoa(len([]rune(token))),
}).Debug()

res, err := c.httpClient.Do(req)
if err != nil {
return err
Expand Down

0 comments on commit a45885f

Please sign in to comment.