Skip to content

Commit

Permalink
fix: use vanilla pino instance for logging (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed May 9, 2023
1 parent 859bc4b commit f8ea664
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/github/webhooks.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
const { createNodeMiddleware, createProbot } = require("probot");
const pino = require("pino");

const app = require("../../app");

module.exports = createNodeMiddleware(app, {
probot: createProbot(),
probot: createProbot({
overrides: {
log: pino(),
},
}),
webhooksPath: "/api/github/webhooks",
});

1 comment on commit f8ea664

@vercel
Copy link

@vercel vercel bot commented on f8ea664 May 9, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.