Frontend changes to not log errors for 404s
This commit is contained in:
parent
37a2bbed35
commit
02b5e92bc8
1 changed files with 10 additions and 8 deletions
|
|
@ -97,16 +97,18 @@ export default {
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do not route to error logic when no wipers found or no promo found (404s)
|
|
||||||
if (error.response.status != "404") {
|
if (error.response.status != "404") {
|
||||||
//router.navigateError(); Emergency change for testing - skiener 03/12
|
// Do not route to error logic when no wipers found or no promo found (404s)
|
||||||
}
|
// router.navigateError(); Emergency change for testing - skiener 03/12
|
||||||
|
|
||||||
global.$logger.logError(
|
// do not log 404 errors from services because we return NotFound
|
||||||
`${method}: ${endpoint}: ${error.message}`,
|
// when a service doesn't return an object
|
||||||
error.response
|
global.$logger.logError(
|
||||||
);
|
`${method}: ${endpoint}: ${error.message}`,
|
||||||
|
error.response
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return reject(error.response);
|
return reject(error.response);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue