aboutsummaryrefslogtreecommitdiff
path: root/src/FileRouter.ts
diff options
context:
space:
mode:
authorTom Harley2018-03-05 16:27:30 +0000
committerTom Harley2018-03-05 16:27:30 +0000
commitf3e538755207f268432a4a55cb6b60cc24523fd7 (patch)
treefec3bd42f7688f61019cebf499c09c27df41e6b7 /src/FileRouter.ts
parentImplement handling of unauthorised requests (diff)
parentIntroduce logging system (diff)
downloadmedicine-f3e538755207f268432a4a55cb6b60cc24523fd7.tar.gz
medicine-f3e538755207f268432a4a55cb6b60cc24523fd7.zip

Merge branch ‘trh/logger’ into trh/payload-checker

Diffstat (limited to 'src/FileRouter.ts')
-rw-r--r--src/FileRouter.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FileRouter.ts b/src/FileRouter.ts
index 8d13401..1cef85d 100644
--- a/src/FileRouter.ts
+++ b/src/FileRouter.ts
@@ -70,7 +70,7 @@ const postLog: Middleware =
return;
}
for (const item of req.body) {
- logger.log(item.level, item.value, {
+ logger.forward(item.level, item.value, {
component: item.component,
user: req.user.username,
external: true