Skip to content

Commit

Permalink
chore(telegram): don't log initConnection error if already done
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 26, 2020
1 parent c84aa89 commit 8c2de7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion telegram/reconnect.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ func (c *Client) reconnect() error {

go func() {
if err := c.initConnection(c.ctx); err != nil {
c.log.With(zap.Error(err)).Error("Failed to init connection after reconnect")
if !c.isDone() {
c.log.Error("Failed to init connection after reconnect", zap.Error(err))
}
return
}

Expand Down

0 comments on commit 8c2de7b

Please sign in to comment.