From ad0997adfb9e1e3b1ff54338d7558cf7b18440ea Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 7 Jul 2017 18:26:12 +0200 Subject: Fix error logging --- server/middlewares/oauth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/middlewares/oauth.ts') diff --git a/server/middlewares/oauth.ts b/server/middlewares/oauth.ts index d545b3e58..fe0490436 100644 --- a/server/middlewares/oauth.ts +++ b/server/middlewares/oauth.ts @@ -14,7 +14,7 @@ const oAuthServer = new OAuthServer({ function authenticate (req: express.Request, res: express.Response, next: express.NextFunction) { oAuthServer.authenticate()(req, res, function (err) { if (err) { - logger.error('Cannot authenticate.', { error: err }) + logger.error('Cannot authenticate.', err) return res.sendStatus(500) } -- cgit v1.2.3