2026-07-21 22:01:30 +00:00
|
|
|
// Module ID: 7341
|
|
|
|
|
// Function ID: 59194
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getBreadcrumbLogLevelFromHttpStatusCode
|
|
|
|
|
// Dependencies: []
|
|
|
|
|
|
2026-07-21 22:01:30 +00:00
|
|
|
// Module 7341 (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;
|
|
|
|
|
};
|