зеркало из https://github.com/mozilla/fxa.git
Merge pull request #13560 from mozilla/feat/push-logging-main
feat(auth): add body logging for push fail
This commit is contained in:
Коммит
19f1e234c1
|
@ -468,7 +468,11 @@ module.exports = function (log, db, config, statsd) {
|
|||
log.warn(LOG_OP_DEVICE_UPDATE_FAILED, { uid, deviceId, err });
|
||||
}
|
||||
} else {
|
||||
log.error(LOG_OP_PUSH_UNEXPECTED_ERROR, { err });
|
||||
log.error(LOG_OP_PUSH_UNEXPECTED_ERROR, {
|
||||
err,
|
||||
statusCode: err.statusCode,
|
||||
body: err.body,
|
||||
});
|
||||
sendErrors[deviceId] = this.reportPushFailure(err, metricsTags);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче