diff options
| author | Tom Harley | 2018-03-05 15:01:26 +0000 |
|---|---|---|
| committer | Tom Harley | 2018-03-05 15:01:26 +0000 |
| commit | c0463a2d7eefaab1f6dbf00843c8b3d2a53abb12 (patch) | |
| tree | 129d5084e76e7e992e3bd55cc03a4b5c955caabc /src/FileRouter.ts | |
| parent | Add miniature response-wrapper middleware (diff) | |
| download | medicine-c0463a2d7eefaab1f6dbf00843c8b3d2a53abb12.tar.gz medicine-c0463a2d7eefaab1f6dbf00843c8b3d2a53abb12.zip | |
Introduce logging system
Diffstat (limited to 'src/FileRouter.ts')
| -rw-r--r-- | src/FileRouter.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/FileRouter.ts b/src/FileRouter.ts index 98fd5c4..fdabc1f 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 @@ -567,5 +567,4 @@ export class FileRouter { const fileRoutes: FileRouter = new FileRouter(); fileRoutes.init(); -const ex: Router = fileRoutes.router; -export default ex; +export default fileRoutes.router; |
