mirror of
https://github.com/zhigang1992/probot.git
synced 2026-06-15 02:18:58 +08:00
Add serializer for repository object
This commit is contained in:
5
index.js
5
index.js
@@ -18,7 +18,10 @@ module.exports = options => {
|
||||
const logger = bunyan.createLogger({
|
||||
name: 'PRobot',
|
||||
level: process.env.LOG_LEVEL || 'debug',
|
||||
stream: bunyanFormat({outputMode: process.env.LOG_FORMAT || 'short'})
|
||||
stream: bunyanFormat({outputMode: process.env.LOG_FORMAT || 'short'}),
|
||||
serializers: {
|
||||
repository: repository => repository.full_name
|
||||
}
|
||||
});
|
||||
|
||||
const webhook = createWebhook({path: '/', secret: options.secret});
|
||||
|
||||
Reference in New Issue
Block a user