Skip to content

Commit

Permalink
Fix logger messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dlampsi committed Mar 9, 2021
1 parent 7cbfd6e commit 6283b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adc.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ func (cl *Client) Reconnect(ctx context.Context, ticker *time.Ticker, maxAttempt
return fmt.Errorf("failed after '%d' attempts. error: %s", attempt, connErr)
}
attempt++
cl.logger.Debugf("Reconnecting to database. Attempt: %d", attempt)
cl.logger.Debugf("Reconnecting to AD server. Attempt: %d", attempt)
cl.Disconnect()
if err := cl.Connect(); err == nil {
cl.logger.Debug("Successfully reconeted to server")
cl.logger.Debug("Successfully reconneted to AD server")
return nil
}
case <-ctx.Done():
Expand Down

0 comments on commit 6283b90

Please sign in to comment.