mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-10 22:17:44 +00:00
log errors on API
This commit is contained in:
parent
10d2e77c4f
commit
ebe7437bfa
1 changed files with 7 additions and 1 deletions
|
@ -198,7 +198,13 @@ func (a *api) upsertAccountsHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
resp, _ := a.httpClient.Do(req)
|
resp, err := a.httpClient.Do(req)
|
||||||
|
if err != nil {
|
||||||
|
a.logger.WithFields(logrus.Fields{
|
||||||
|
"err": err,
|
||||||
|
}).Info("failed to remove old client")
|
||||||
|
return
|
||||||
|
}
|
||||||
resp.Body.Close()
|
resp.Body.Close()
|
||||||
}(ctx, apns)
|
}(ctx, apns)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue