Skip to content

Commit

Permalink
docs: modify logging examples (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebianchi committed Dec 15, 2022
1 parent 2b8716d commit fc31921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ service.addPostDecorator('/notify', function notifyHandler(request) {
)
} catch (error) {
// Log at "ERROR" level
req.log.error('Error sending notification', error)
req.log.error({ error }, 'Error sending notification')
}
)
```
Expand Down

0 comments on commit fc31921

Please sign in to comment.