Skip to content

Commit f8ea664

Browse files
authored
fix: use vanilla pino instance for logging (#465)
1 parent 859bc4b commit f8ea664

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

api/github/webhooks.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
const { createNodeMiddleware, createProbot } = require("probot");
2+
const pino = require("pino");
23

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

56
module.exports = createNodeMiddleware(app, {
6-
probot: createProbot(),
7+
probot: createProbot({
8+
overrides: {
9+
log: pino(),
10+
},
11+
}),
712
webhooksPath: "/api/github/webhooks",
813
});

0 commit comments

Comments
 (0)