[IMP] mergebot: log repr of comments (might show oddities)

This commit is contained in:
Xavier Morel 2021-01-14 07:42:10 +01:00
parent ba1a8ee089
commit 560c6e6b16

View File

@ -266,7 +266,7 @@ def handle_comment(env, event):
issue = event['issue']['number']
author = event['comment']['user']['login']
comment = event['comment']['body']
_logger.info('comment[%s]: %s %s#%s "%s"', event['action'], author, repo, issue, comment)
_logger.info('comment[%s]: %s %s#%s %r', event['action'], author, repo, issue, comment)
if event['action'] != 'created':
return "Ignored: action (%r) is not 'created'" % event['action']
@ -278,7 +278,7 @@ def handle_review(env, event):
author = event['review']['user']['login']
comment = event['review']['body'] or ''
_logger.info('review[%s]: %s %s#%s "%s"', event['action'], author, repo, pr, comment)
_logger.info('review[%s]: %s %s#%s %r', event['action'], author, repo, pr, comment)
if event['action'] != 'submitted':
return "Ignored: action (%r) is not 'submitted'" % event['action']