2026-08-12 06:57:52 +00:00
|
|
|
// Module ID: 7605
|
|
|
|
|
// Function ID: 7606
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getBreadcrumbLogLevelFromHttpStatusCode
|
|
|
|
|
// Dependencies: []
|
|
|
|
|
|
2026-08-12 06:57:52 +00:00
|
|
|
// Module 7605 (getBreadcrumbLogLevelFromHttpStatusCode)
|
2026-07-20 16:05:17 +00:00
|
|
|
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;
|
|
|
|
|
};
|