mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Fix logging after configuration refactoring
This commit is contained in:
parent
73be5bfc68
commit
35fbea355f
|
@ -57,6 +57,7 @@ export default class Server {
|
||||||
|
|
||||||
private startServer(app: Express.Application, port: number) {
|
private startServer(app: Express.Application, port: number) {
|
||||||
const that = this;
|
const that = this;
|
||||||
|
that.globalLogger.info("Starting Authelia...");
|
||||||
return new BluebirdPromise<void>((resolve, reject) => {
|
return new BluebirdPromise<void>((resolve, reject) => {
|
||||||
this.httpServer = app.listen(port, function (err: string) {
|
this.httpServer = app.listen(port, function (err: string) {
|
||||||
that.globalLogger.info("Listening on port %d...", port);
|
that.globalLogger.info("Listening on port %d...", port);
|
||||||
|
@ -73,8 +74,8 @@ export default class Server {
|
||||||
const appConfiguration = ConfigurationParser.parse(configuration);
|
const appConfiguration = ConfigurationParser.parse(configuration);
|
||||||
|
|
||||||
// by default the level of logs is info
|
// by default the level of logs is info
|
||||||
deps.winston.level = configuration.logs_level;
|
deps.winston.level = appConfiguration.logs_level;
|
||||||
this.displayConfigurations(configuration);
|
this.displayConfigurations(appConfiguration);
|
||||||
|
|
||||||
return this.setup(appConfiguration, app, deps)
|
return this.setup(appConfiguration, app, deps)
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user