Skip to content

Commit 6f205c3

Browse files
committed
fix some buggy logging statements
1 parent cca3634 commit 6f205c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ module.exports = (robot, { getRouter }, Settings = require('./lib/settings')) =>
387387
robot.on('repository.edited', async context => {
388388
const { payload } = context
389389
const { sender } = payload
390-
robot.log.debug('repository.edited payload from ', JSON.stringify(sender))
390+
robot.log.debug(sender, 'repository.edited payload from')
391391

392392
if (sender.type === 'Bot') {
393393
robot.log.debug('Repository Edited by a Bot')

lib/plugins/rulesets.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ module.exports = class Rulesets extends Diffable {
2020
// Find all Rulesets for this org
2121
find () {
2222
if (this.scope === 'org') {
23-
this.log.debug(`Getting all rulesets for the org ${this.org}`)
23+
this.log.debug(`Getting all rulesets for the org ${this.repo.owner}`)
2424

2525
const listOptions = this.github.request.endpoint.merge('GET /orgs/{org}/rulesets', {
2626
org: this.repo.owner,
2727
headers: version
2828
})
29-
this.log(listOptions)
29+
this.log.debug(listOptions)
3030
return this.github.paginate(listOptions)
3131
.then(res => {
3232
const rulesets = res.map(ruleset => {

0 commit comments

Comments
 (0)