From 560c6e6b16e39bac6489942f70da5cddf4182bc1 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 14 Jan 2021 07:42:10 +0100 Subject: [PATCH] [IMP] mergebot: log repr of comments (might show oddities) --- runbot_merge/controllers/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runbot_merge/controllers/__init__.py b/runbot_merge/controllers/__init__.py index 3e2a233b..0067de0c 100644 --- a/runbot_merge/controllers/__init__.py +++ b/runbot_merge/controllers/__init__.py @@ -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']