@sentry/core
Version:
Base implementation for all Sentry JavaScript SDKs
15 lines (13 loc) • 381 B
JavaScript
function getBreadcrumbLogLevelFromHttpStatusCode(statusCode) {
if (statusCode === void 0) {
return void 0;
} else if (statusCode >= 400 && statusCode < 500) {
return "warning";
} else if (statusCode >= 500) {
return "error";
} else {
return void 0;
}
}
export { getBreadcrumbLogLevelFromHttpStatusCode };
//# sourceMappingURL=breadcrumb-log-level.js.map