aboutsummaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
authorTom Harley2020-01-24 06:44:55 +0000
committerTom Harley2020-01-24 06:44:55 +0000
commit354e6851e70d7c19106af0d4f14c2b2751e7167d (patch)
tree3a00ce281cd6466566708dc1c8234d0b2979945d /src/app.ts
parentSimplify Travis CI installing (diff)
downloadmedicine-354e6851e70d7c19106af0d4f14c2b2751e7167d.tar.gz
medicine-354e6851e70d7c19106af0d4f14c2b2751e7167d.zip

Changes from ages ago

HEADtrh/travis-setup
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;
};