(core) Improve debug logging related for client-side errors and sandbox crashes.

Summary:
- Include docId when available for client-side error reporting
- Distinguish sandbox crashes from forced exits

Test Plan: Tested manually

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D3373
This commit is contained in:
Dmitry S
2022-04-11 09:52:34 -04:00
parent 859c593448
commit cedcdc6bff
3 changed files with 9 additions and 1 deletions

View File

@@ -576,6 +576,7 @@ export class FlexServer implements GristServer {
const mreq = req as RequestWithLogin;
log.rawWarn('client error', {
event: req.body.event,
docId: req.body.docId,
page: req.body.page,
browser: req.body.browser,
org: mreq.org,