kopia lustrzana https://github.com/badgen/badgen.net
chore: dont report known errors
rodzic
e63fa9043a
commit
0de192d443
|
@ -30,12 +30,11 @@ module.exports = async (scope, fn, paramsPath) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const errorLogger = (fetchKey, err, status) => {
|
const errorLogger = (fetchKey, err, status) => {
|
||||||
raven.captureException(err, {
|
|
||||||
tags: { fetchKey, status, service: fetchKey.split(' ')[0] }
|
|
||||||
})
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (status === 'unknown') {
|
if (status === 'unknown') {
|
||||||
|
raven.captureException(err, {
|
||||||
|
tags: { fetchKey, status, service: fetchKey.split(' ')[0] }
|
||||||
|
})
|
||||||
// log details err info
|
// log details err info
|
||||||
const resData = JSON.stringify(err.response.data, null, 2)
|
const resData = JSON.stringify(err.response.data, null, 2)
|
||||||
const details = err.stack + '\n' + resData.replace(/^/mg, ' > ')
|
const details = err.stack + '\n' + resData.replace(/^/mg, ' > ')
|
||||||
|
|
Ładowanie…
Reference in New Issue