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

Fixing custom serializers example #78

Merged
merged 1 commit into from
Sep 21, 2021
Merged

Conversation

molomby
Copy link
Contributor

@molomby molomby commented Sep 21, 2021

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 Incorrect readme.md example #76

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 pinojs#76
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 9cd912c into pinojs:master Sep 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants