aboutsummaryrefslogtreecommitdiff
path: root/src/logger.ts
diff options
context:
space:
mode:
authorTom Harley2018-04-13 16:12:04 +0100
committerTom Harley2018-04-13 16:12:04 +0100
commit244fa29c38dcae5732a06cdb39de1a2a00557117 (patch)
tree5f280348fae84d974eb4adc769431a88e0b6273f /src/logger.ts
parentMerge branch 'trh/gets' of gitlab.cs.st-andrews.ac.uk:cs3099group-be-4/projec... (diff)
downloadmedicine-244fa29c38dcae5732a06cdb39de1a2a00557117.tar.gz
medicine-244fa29c38dcae5732a06cdb39de1a2a00557117.zip

Fix minor places, and add Postman collection

Diffstat (limited to 'src/logger.ts')
-rw-r--r--src/logger.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logger.ts b/src/logger.ts
index bdcb390..aefb751 100644
--- a/src/logger.ts
+++ b/src/logger.ts
@@ -115,8 +115,8 @@ export let enabled: boolean = true;
const consoleTransport: winston.TransportInstance =
new winston.transports.Console({
name: 'consoleTransport',
- level: 'info',
- silent: false,
+ level: 'verbose',
+ silent: process.env.NODE_ENV === 'test',
handleExceptions: true,
humanReadableUncaughtException: true,
formatter: (