Skip to content

Commit

Permalink
chore: remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark committed Sep 19, 2024
1 parent 4f495fa commit be3745a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion apps/agent/pkg/circuitbreaker/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (cb *CB[Res]) preflight(ctx context.Context) error {
return ErrTripped
}

cb.logger.Info().Str("state", string(cb.state)).Int("requests", cb.requests).Int("maxRequests", cb.config.maxRequests).Msg("circuit breaker state")
cb.logger.Debug().Str("state", string(cb.state)).Int("requests", cb.requests).Int("maxRequests", cb.config.maxRequests).Msg("circuit breaker state")
if cb.state == HalfOpen && cb.requests >= cb.config.maxRequests {
return ErrTooManyRequests
}
Expand Down
2 changes: 0 additions & 2 deletions apps/agent/services/eventrouter/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ func New(config Config) (*Service, error) {
config.Logger.Error().Str("e", fmt.Sprintf("%T: %+v", row, row)).Msg("Error casting key verification")
continue
}
config.Logger.Info().Interface("e", e).Msg("Key verification event")
// dual write to clickhouse
outcome := "VALID"
if e.DeniedReason != "" {
Expand All @@ -94,7 +93,6 @@ func New(config Config) (*Service, error) {
IdentityID: e.OwnerId,
})
}

}

}
Expand Down

0 comments on commit be3745a

Please sign in to comment.