MCPcopy Create free account
hub / github.com/fastify/fastify / incomingRequest

Method incomingRequest

lib/log-controller.js:47–51  ·  view source on GitHub ↗

* Logs an incoming request at `info` level. * * @param {object} request Fastify request object. * @param {object} reply Fastify reply object. * @param {object} [metadata] Extra contextual data (unused).

(request, reply, metadata)

Source from the content-addressed store, hash-verified

45 * @param {object} [metadata] Extra contextual data (unused).
46 */
47 incomingRequest (request, reply, metadata) {
48 if (this.isLogDisabled(request)) { return }
49
50 request.log.info({ req: request }, 'incoming request')
51 }
52
53 /**
54 * Logs the outcome of a completed request.

Callers 5

onBadUrlFunction · 0.45
onMaxParamLengthFunction · 0.45
fourOhFourFallBackFunction · 0.45
routeHandlerFunction · 0.45

Calls 2

isLogDisabledMethod · 0.95
infoMethod · 0.80

Tested by

no test coverage detected