Skip to content

Commit

Permalink
fixed type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaev committed Dec 22, 2017
1 parent b0a39c1 commit f8e6c5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions database/redis/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ func (connector *DbConnector) manageSubscriptions(tomb *tomb.Tomb, channel strin
}
}
case *net.OpError:
opErr := err.(*net.OpError)
connector.logger.Info("psc.Receive() returned *net.OpError, reconnecting")
connector.logger.Infof("%s failed: %s for connection from %s to %s", opErr.Op, opErr.Err.Error(), opErr.Source.String(), opErr.Addr.String())
connector.logger.Infof("%s failed: %s for connection from %s to %s", n.Op, n.Err.Error(), n.Source.String(), n.Addr.String())
newPsc, err := connector.makePubSubConnection(metricEventKey)
if err != nil {
connector.logger.Errorf("Failed to reconnect to subscription: %v", err)
Expand Down

0 comments on commit f8e6c5d

Please sign in to comment.