mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[feature] Rewrite error handler
This commit is contained in:
@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user