Fix logging after configuration refactoring

This commit is contained in:
Clement Michaud 2018-08-05 16:03:35 +02:00
parent 73be5bfc68
commit 35fbea355f

View File

@ -57,6 +57,7 @@ export default class Server {
private startServer(app: Express.Application, port: number) {
const that = this;
that.globalLogger.info("Starting Authelia...");
return new BluebirdPromise<void>((resolve, reject) => {
this.httpServer = app.listen(port, function (err: string) {
that.globalLogger.info("Listening on port %d...", port);
@ -73,8 +74,8 @@ export default class Server {
const appConfiguration = ConfigurationParser.parse(configuration);
// by default the level of logs is info
deps.winston.level = configuration.logs_level;
this.displayConfigurations(configuration);
deps.winston.level = appConfiguration.logs_level;
this.displayConfigurations(appConfiguration);
return this.setup(appConfiguration, app, deps)
.then(function () {