22 lines
506 B
JavaScript
22 lines
506 B
JavaScript
// Module ID: 7346
|
|
// Function ID: 59239
|
|
// Name: getBreadcrumbLogLevelFromHttpStatusCode
|
|
// Dependencies: []
|
|
|
|
// Module 7346 (getBreadcrumbLogLevelFromHttpStatusCode)
|
|
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;
|
|
};
|