mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feature: add level-based logger methods for convenience
This commit is contained in:
committed by
Ruben Taelman
parent
6212c15352
commit
db9aefe551
@@ -52,7 +52,7 @@ export const runCustom = function(
|
||||
}) as Setup;
|
||||
return await setup.setup();
|
||||
})().then((base: string): void => {
|
||||
logger.log('info', `Running at ${base}`);
|
||||
logger.info(`Running at ${base}`);
|
||||
}).catch((error): void => {
|
||||
// This is the only time we can *not* use the logger to print error messages, as dependency injection has failed.
|
||||
stderr.write(`${error}\n`);
|
||||
|
||||
@@ -71,7 +71,7 @@ export class Setup {
|
||||
},
|
||||
);
|
||||
};
|
||||
this.logger.log('debug', 'Setup default ACL settings');
|
||||
this.logger.debug('Setup default ACL settings');
|
||||
await aclSetup();
|
||||
|
||||
this.httpServer.listen(this.port);
|
||||
|
||||
Reference in New Issue
Block a user