aboutsummaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
authorjw2552018-02-06 22:34:53 +0000
committerjw2552018-02-06 22:34:53 +0000
commit1520a13a7144e6a0569f589d3aa5fdddc8136b8c (patch)
tree0494a51e42a1491621bdc33e3742e9b0f49619f7 /src/app.ts
parentMerge branch 'cjd24/stubsgres' into 'master' (diff)
parenttesting merged with typechecking (diff)
downloadmedicine-1520a13a7144e6a0569f589d3aa5fdddc8136b8c.tar.gz
medicine-1520a13a7144e6a0569f589d3aa5fdddc8136b8c.zip

Merge branch ‘testing’

Diffstat (limited to 'src/app.ts')
-rw-r--r--src/app.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app.ts b/src/app.ts
index 83bf2b0..f2fbe0c 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,7 @@ class App {
// Configure Express middleware.
private middleware(): void {
- this.express.use(logger('combined'));
+ if(this.log_enabled) this.express.use(logger('combined'));
this.express.use(bodyParser.json());
this.express.use(bodyParser.urlencoded({ extended: false }));
}