aboutsummaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app.ts b/src/app.ts
index 393a89e..bffaffc 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -41,8 +41,8 @@ class App {
* server.
*/
public constructor(enableLog: boolean) {
+ logger.setEnabled(enableLog);
logger.debug('Constructing router');
- this.logEnabled = enableLog;
this.express = ex();
this.express.use((req, res, next) => {
if (req.headers.authorisation) {
@@ -153,5 +153,5 @@ export default new App(true).express;
*/
// tslint:disable-next-line:variable-name
export const TestApp: () => ex.Express = (): ex.Express => {
- return new App(true).express;
+ return new App(false).express;
};