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

Method isLogDisabled

lib/log-controller.js:34–38  ·  view source on GitHub ↗

* Checks whether request logging is disabled for the given request. * * @param {object} req Raw or Fastify request object. * @returns {boolean} `true` when logging should be skipped.

(req)

Source from the content-addressed store, hash-verified

32 * @returns {boolean} `true` when logging should be skipped.
33 */
34 isLogDisabled (req) {
35 return this.isDisableRequestLoggingFunction
36 ? this.disableRequestLogging(req)
37 : this.disableRequestLogging
38 }
39
40 /**
41 * Logs an incoming request at `info` level.

Callers 7

incomingRequestMethod · 0.95
requestCompletedMethod · 0.95
defaultErrorLogMethod · 0.95
streamErrorMethod · 0.95
routeNotFoundMethod · 0.95
writeHeadErrorMethod · 0.95
serializerErrorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected