Skip to content

Commit

Permalink
Update src/core/packages/http/server-internal/src/logging/get_respons…
Browse files Browse the repository at this point in the history
…e_log.ts

Co-authored-by: Jean-Louis Leysens <[email protected]>
  • Loading branch information
jesuswr and jloleysens authored Jan 28, 2025
1 parent ab09f10 commit bf91b1e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function getEcsResponseLog(request: Request, log: Logger) {

// borrowed from the hapi/good implementation
const responseTime = (request.info.completed || request.info.responded) - request.info.received;
const responseTimeMsg = !isNaN(responseTime) && responseTime >= 0 ? ` ${responseTime}ms` : '';
const responseTimeMsg = responseTime >= 0 ? ` ${responseTime}ms` : '';

const bytes = response ? getResponsePayloadBytes(response, log) : undefined;
const bytesMsg = bytes ? ` - ${numeral(bytes).format('0.0b')}` : '';
Expand Down

0 comments on commit bf91b1e

Please sign in to comment.