@mgcrea/fastify-request-logger
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -11,7 +11,4 @@ "use strict"; | ||
const isIgnoredRequest = (request) => { | ||
const { routerPath, log } = request; | ||
const { routerPath } = request; | ||
if (ignoredPaths.includes(routerPath)) { | ||
if (ignoredBindings) { | ||
log.setBindings(ignoredBindings); | ||
} | ||
return true; | ||
@@ -23,2 +20,5 @@ } | ||
if (isIgnoredRequest(request)) { | ||
if (ignoredBindings) { | ||
request.log.setBindings(ignoredBindings); | ||
} | ||
return; | ||
@@ -25,0 +25,0 @@ } |
{ | ||
"name": "@mgcrea/fastify-request-logger", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Compact request logger plugin for fastify written in TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
8834