Skip to content

Commit

Permalink
use Msg as no arguments are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Landgraf committed Jan 27, 2022
1 parent 5642d03 commit 8c87bed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maintenance/failover/failover.go
Expand Up @@ -131,7 +131,7 @@ func (a *ActivePassive) Run(ctx context.Context) error {
RetryStrategy: redislock.LimitRetry(redislock.LinearBackoff(a.timeToFailover/3), 3),
})
if err != nil {
logger.Debug().Err(err).Msgf("failed to refresh")
logger.Debug().Err(err).Msg("failed to refresh")
a.becomeUndefined(ctx)
}
}
Expand Down Expand Up @@ -159,7 +159,7 @@ func (a *ActivePassive) Run(ctx context.Context) error {
// we are active, renew if required
d, err := lock.TTL()
if err != nil {
logger.Debug().Err(err).Msgf("failed to get TTL")
logger.Debug().Err(err).Msg("failed to get TTL")
}
if d == 0 {
// TTL seems to be expired, retry to get lock or become
Expand Down Expand Up @@ -225,7 +225,7 @@ func (a *ActivePassive) becomeUndefined(ctx context.Context) {
func (a *ActivePassive) setState(ctx context.Context, state status) bool {
err := a.client.SetCurrentPodLabel(ctx, Label, a.label(state))
if err != nil {
log.Ctx(ctx).Error().Err(err).Msgf("failed to mark pod as undefined")
log.Ctx(ctx).Error().Err(err).Msg("failed to mark pod as undefined")
a.stateMu.Lock()
a.state = UNDEFINED
a.stateMu.Unlock()
Expand Down

0 comments on commit 8c87bed

Please sign in to comment.