aboutsummaryrefslogtreecommitdiff
path: root/src/logger.ts
diff options
context:
space:
mode:
authorjw2552018-04-13 16:26:49 +0100
committerjw2552018-04-13 16:26:49 +0100
commit2f89017a5f6cca3077936432b6e5b35167fc8e0d (patch)
tree4d6a9306513b4cfafece1f3ed2f562999b8451ad /src/logger.ts
parentfixed privileges in testing database (diff)
parentMerge branch 'trh/gets' of gitlab.cs.st-andrews.ac.uk:cs3099group-be-4/projec... (diff)
downloadmedicine-2f89017a5f6cca3077936432b6e5b35167fc8e0d.tar.gz
medicine-2f89017a5f6cca3077936432b6e5b35167fc8e0d.zip

Merge branch ‘trh/gets’ of https://gitlab.cs.st-andrews.ac.uk/cs3099group-be-4/project-code into trh/gets

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: (