GODT-2045: Timeouts should be considered network issues

This commit is contained in:
James Houlahan
2022-11-19 13:19:08 +01:00
parent 0ce0e4765b
commit 2972e1273f
3 changed files with 6 additions and 4 deletions

View File

@ -508,8 +508,10 @@ func (bridge *Bridge) onStatusDown(ctx context.Context) {
return
case <-time.After(backoff):
logrus.Info("Pinging API")
if err := bridge.api.Ping(ctx); err != nil {
logrus.WithError(err).Warn("Failed to ping API, will retry")
logrus.WithError(err).Warn("Ping failed, API is still unreachable")
} else {
return
}