mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix log service (#2527)
This commit is contained in:
committed by
Denys Vuika
parent
0259c83abd
commit
25ae5373cf
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"ecmHost": "http://{hostname}:{port}/ecm",
|
"ecmHost": "http://{hostname}:{port}/ecm",
|
||||||
"bpmHost": "http://{hostname}:{port}/bpm"
|
"bpmHost": "http://{hostname}:{port}/bpm",
|
||||||
|
"logLevel" : "silent"
|
||||||
}
|
}
|
||||||
|
@@ -105,8 +105,10 @@ export class LogService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getCurrentLogLevel(level: string): LogLevelsEnum {
|
getCurrentLogLevel(level: string): LogLevelsEnum {
|
||||||
return logLevels.find((currentLevel: any) => {
|
let referencedLevel = logLevels.find((currentLevel: any) => {
|
||||||
return currentLevel.name.toLocaleLowerCase() === level.toLocaleLowerCase();
|
return currentLevel.name.toLocaleLowerCase() === level.toLocaleLowerCase();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return referencedLevel ? referencedLevel.level : 5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user