jenkins-bot has submitted this change and it was merged.
Change subject: Log ALL the things!
......................................................................
Log ALL the things!
Most relevantly, full transaction info because it's hard to figure
out otherwise.
Change-Id: Ife6a35ba554b7f9819c9c83387ced156f8f434eb
---
M wikibugs.py
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Legoktm: Looks good to me, approved
jenkins-bot: Verified
diff --git a/wikibugs.py b/wikibugs.py
index 3991356..42754c9 100644
--- a/wikibugs.py
+++ b/wikibugs.py
@@ -95,11 +95,11 @@
:param task_id: T###
:type task_id: basestring
"""
- logger.info('Getting maniphest.info for %s' % task_id)
task_id = int(task_id[1:])
info = self.phab.request('maniphest.info', {
'task_id': task_id
})
+ logger.debug('maniphest.info for %r = %s' % (task_id,
json.dumps(info)))
return info
@functools.lru_cache(maxsize=200)
@@ -130,7 +130,7 @@
}
if trans['comments'] is not None:
transactions[trans['transactionType']]['comments'] =
trans['comments']
-
+ logger.debug('get_transaction_info(%r,%r) = %s' % (task_id,
transaction_phids, json.dumps(transactions)))
return transactions
def get_task_page(self, url):
@@ -212,7 +212,7 @@
if phid_type != 'TASK': # Only handle Maniphest Tasks for now
logger.debug('Skipping %s, it is of type %s' %
(event_info['data']['objectPHID'], phid_type))
return
- logger.debug('Processing %s' % event_info['data']['objectPHID'])
+ logger.debug('Processing %s' % json.dumps(event_info))
phid_info = self.phid_info(event_info['data']['objectPHID'])
task_info = self.maniphest_info(phid_info['name'])
--
To view, visit https://gerrit.wikimedia.org/r/191361
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ife6a35ba554b7f9819c9c83387ced156f8f434eb
Gerrit-PatchSet: 1
Gerrit-Project: labs/tools/wikibugs2
Gerrit-Branch: master
Gerrit-Owner: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits