2026-07-23 10:11:24 +00:00
|
|
|
// Module ID: 7346
|
2026-07-24 07:16:23 +00:00
|
|
|
// Function ID: 59268
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: getBreadcrumbLogLevelFromHttpStatusCode
|
|
|
|
|
// Dependencies: []
|
|
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
// Module 7346 (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;
|
|
|
|
|
};
|