fix log service (#2527)

This commit is contained in:
Eugenio Romano
2017-10-23 21:52:20 +01:00
committed by Denys Vuika
parent 0259c83abd
commit 25ae5373cf
2 changed files with 5 additions and 2 deletions

View File

@@ -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"
} }

View File

@@ -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;
} }
} }