Skip to content

Commit

Permalink
Add warn log when no CB is used on a component
Browse files Browse the repository at this point in the history
  • Loading branch information
jademcosta committed Jul 2, 2023
1 parent 3a38135 commit c7419f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/circuitbreaker/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func FromConfig(log *zap.SugaredLogger, registry *prometheus.Registry, cbConfig
}

if !turnOn {
log.Warnf("circuit breaker not being used on specific case", "name", name, "flow", flow)
return NewDummyCircuitBreaker(), nil
}
}
Expand Down

0 comments on commit c7419f4

Please sign in to comment.