decord/source/983_getBreadcrumbLogLevelFromHttpStatusCode.js

24 lines
572 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 983
// Function ID: 984
2026-07-20 16:05:17 +00:00
// Name: getBreadcrumbLogLevelFromHttpStatusCode
// Dependencies: []
2026-07-29 08:29:29 +00:00
// Module 983 (getBreadcrumbLogLevelFromHttpStatusCode)
2026-07-20 16:05:17 +00:00
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
arg5.getBreadcrumbLogLevelFromHttpStatusCode = function getBreadcrumbLogLevelFromHttpStatusCode(arg0) {
let tmp;
if (undefined !== arg0) {
if (arg0 < 400) {
let str2;
if (arg0 >= 500) {
str2 = "error";
}
let str = str2;
} else {
str = "warning";
}
tmp = str;
}
return tmp;
};