aboutsummaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
authorjw2552018-02-06 15:00:13 +0000
committerjw2552018-02-06 15:00:13 +0000
commit8a6f6187eba842da4fabbb8a88e8e6d5dd23d3d9 (patch)
tree9d5ff8d7691eed12731bc4edd904b51338be59c4 /src/app.ts
parentMerge branch 'trh/node-tidy' into 'master' (diff)
downloadmedicine-8a6f6187eba842da4fabbb8a88e8e6d5dd23d3d9.tar.gz
medicine-8a6f6187eba842da4fabbb8a88e8e6d5dd23d3d9.zip

some testing

Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/app.ts b/src/app.ts
index 5ace143..7bbe31c 100644
--- a/src/app.ts
+++ b/src/app.ts
@@ -6,6 +6,7 @@ import FileRouter from './FileRouter';
class App {
public express
+ public log_enabled : boolean;
constructor () {
this.express = express()
@@ -15,7 +16,8 @@ class App {
// Configure Express middleware.
private middleware(): void {
- this.express.use(logger('combined'));
+ console.log(this.log_enabled);
+ if(this.log_enabled) this.express.use(logger('combined'));
this.express.use(bodyParser.json());
this.express.use(bodyParser.urlencoded({ extended: false }));
}