Skip to content

Commit

Permalink
Add 'level' field to logging information in tweetfinder
Browse files Browse the repository at this point in the history
The 'level' field has been added to tweetfinder's delay manager, providing an additional layer of traceability within log output. This change will aid in debugging and increase visibility into the system's operations.
  • Loading branch information
lueurxax committed Dec 22, 2023
1 parent 4a1d618 commit e9df7b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/tweetfinder/delay_manager_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (m *managerV2) TooManyRequests(ctx context.Context) {
WithField("duration", limiter.Duration()).
WithField(delayKey, m.delay).
WithField("temp", temp).
WithField("level", level).
Trace("setting threshold")

settled = true
Expand Down

0 comments on commit e9df7b6

Please sign in to comment.