Skip to content

Commit

Permalink
Include 'context' in the log message for 'GitHubStatusPush'
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Nov 22, 2017
1 parent 6e1cc81 commit 4ed3045
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
@@ -0,0 +1 @@
Include `context` in the log message for `GitHubStatusPush`
14 changes: 8 additions & 6 deletions master/buildbot/reporters/github.py
Expand Up @@ -172,15 +172,17 @@ def send(self, build):
)
if self.verbose:
log.msg(
'Updated status with "{state}" for '
'{repoOwner}/{repoName} at {sha}, issue {issue}.'.format(
state=state, repoOwner=repoOwner, repoName=repoName, sha=sha, issue=issue))
'Updated status with "{state}" for {repoOwner}/{repoName} '
'at {sha}, context "{context}", issue {issue}.'.format(
state=state, repoOwner=repoOwner, repoName=repoName,
sha=sha, issue=issue, context=context))
except Exception as e:
log.err(
e,
'Failed to update "{state}" for '
'{repoOwner}/{repoName} at {sha}, issue {issue}'.format(
state=state, repoOwner=repoOwner, repoName=repoName, sha=sha, issue=issue))
'Failed to update "{state}" for {repoOwner}/{repoName} '
'at {sha}, context "{context}", issue {issue}.'.format(
state=state, repoOwner=repoOwner, repoName=repoName,
sha=sha, issue=issue, context=context))


class GitHubCommentPush(GitHubStatusPush):
Expand Down

0 comments on commit 4ed3045

Please sign in to comment.