Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pino 7 new transport interface #63

Merged
merged 12 commits into from
Sep 15, 2021
Merged

Pino 7 new transport interface #63

merged 12 commits into from
Sep 15, 2021

Conversation

Eomm
Copy link
Contributor

@Eomm Eomm commented Sep 13, 2021

Ref pinojs/pino#1056

Main changes:

  • removed useUnifiedTopology and useNewUrlParser options. Since mongo client v4 these options are ignored - this module uses the 4.1 sticky version
  • expose the transport interface using the pino-abstract-transport utility
  • implement the cli's logic as new pino v7 transport

Do you have some tests to suggest?
Do you think that we could use the mongo's bulk write to insert rows? - if so, what frequency?

Todo:

  • documentation

log.fatal(new Error('ops'), 'not ignored')
t.pass('logged on mongo')

await setTimeout(1000)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here, I did not found a way to wait pino.flush() (and it was triggering an error. I'm investigating)

.github/workflows/ci.yml Outdated Show resolved Hide resolved
@Eomm Eomm marked this pull request as ready for review September 13, 2021 13:47
test/end-to-end/transport.js Show resolved Hide resolved
.github/workflows/ci.yml Show resolved Hide resolved
lib/pino-transport.js Outdated Show resolved Hide resolved
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
Copy link
Member

there appear to be some conflicts

@Eomm
Copy link
Contributor Author

Eomm commented Sep 15, 2021

there appear to be some conflicts

Done

@mcollina mcollina merged commit 17da100 into pinojs:master Sep 15, 2021
@mcollina mcollina mentioned this pull request Sep 27, 2021
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants