Skip to content

Commit

Permalink
docs: add logger option in async/await example (fastify#2465)
Browse files Browse the repository at this point in the history
The first example has this option and I think the async/await example should have it as well.
  • Loading branch information
lukyth committed Aug 5, 2020
1 parent dbfbb31 commit 21578f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ fastify.listen(3000, function (err, address) {
Do you prefer to use `async/await`? Fastify supports it out-of-the-box.<br>
*(We also suggest using [make-promises-safe](https://github.com/mcollina/make-promises-safe) to avoid file descriptor and memory leaks.)*
```js
const fastify = require('fastify')()
const fastify = require('fastify')({
logger: true
})

fastify.get('/', async (request, reply) => {
return { hello: 'world' }
Expand Down

0 comments on commit 21578f5

Please sign in to comment.