Really skip the body while logging in JSON

Co-authored-by: Jonathan Perret <j-github@jonathanperret.net>
pull/913/head
Florent 2 months ago committed by GitHub
parent 6a37eef205
commit b349f0d892
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -426,7 +426,7 @@ export class FlexServer implements GristServer {
host: tokens.host(req, res),
method: tokens.method(req, res),
path: tokens.gristInfo(req, res),
body: shouldLogBody ? tokens.body(req, res) : {},
...(shouldLogBody ? { body: tokens.body(req, res) } : {}),
status: tokens.status(req, res),
timeMs: parseFloat(tokens['response-time'](req, res)) || undefined,
contentLength: parseInt(tokens.res(req, res, 'content-length'), 10) || undefined,

Loading…
Cancel
Save