Skip to content

Commit

Permalink
Merge 2aa4091 into 9b84037
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoRBaquero committed Feb 5, 2020
2 parents 9b84037 + 2aa4091 commit c81da97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ async function register (server, options) {
}

const info = request.info
const childBindings = getChildBindings(request)
request.logger = request.logger || logger.child(childBindings)

request.logger.info(
{
payload: options.logPayload ? request.payload : undefined,
Expand Down

0 comments on commit c81da97

Please sign in to comment.