Add serializer for repository object

This commit is contained in:
Brandon Keepers
2017-06-09 17:17:01 -05:00
parent fdcc2e949f
commit ab1e9257fc

View File

@@ -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});