22 lines
505 B
JavaScript
22 lines
505 B
JavaScript
// Module ID: 7848
|
|
// Function ID: 7849
|
|
// Name: getBreadcrumbLogLevelFromHttpStatusCode
|
|
// Dependencies: []
|
|
|
|
// Module 7848 (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;
|
|
};
|