From 6f0e7882b5abfdd131ff4c3e207a2624cb6d864a Mon Sep 17 00:00:00 2001 From: Usman Kupalov Date: Fri, 22 Sep 2023 11:51:06 +0500 Subject: [PATCH] [feature] Rewrite error handler --- DocService/sources/server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DocService/sources/server.js b/DocService/sources/server.js index 3a315be4..82bdf630 100644 --- a/DocService/sources/server.js +++ b/DocService/sources/server.js @@ -388,7 +388,8 @@ docsCoServer.install(server, () => { }); }); app.use((err, req, res, next) => { - let ctx = new operationContext.Context() + let ctx = new operationContext.Context(); + ctx.initFromRequest(req); ctx.logger.error(err.stack); res.sendStatus(500); });