mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +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
|
||||
}
|
||||
|
||||
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()
|
||||
}(ctx, apns)
|
||||
|
||||
|
|
Loading…
Reference in a new issue