Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Fixing custom serializers example (#78)
Browse files Browse the repository at this point in the history
The current example invokes the ExpressPinoLogger constructor twice, which throws in init:

```
TypeError: Cannot set property 'log' of undefined
    at loggingMiddleware (/repos/app/node_modules/pino-http/logger.js:99:23)
```

Fix for #76
  • Loading branch information
molomby authored Sep 21, 2021
1 parent b8b2603 commit 9cd912c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ npm i express-pino-logger --save
'use strict'

var app = require('express')()
var pino = require('express-pino-logger')()
var pino = require('express-pino-logger')

app.use(pino)

Expand Down

0 comments on commit 9cd912c

Please sign in to comment.