Updated log messages in async_push for better debuggability.
This requires CQ restart to take effect, but it can wait till the next natural restart, no rush.
BUG=none
Review URL: https://codereview.chromium.org/142793004
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/commit-queue@246728 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/async_push.py b/async_push.py
index 9908da9..2e6d861 100644
--- a/async_push.py
+++ b/async_push.py
@@ -83,7 +83,7 @@
def send(self, pending, packet):
"""Queues a packet."""
- logging.debug('For issue %d, sending %s', pending.issue, packet)
+ logging.debug('For issue %d, queuing for send: %s', pending.issue, packet)
self.queue.put(self._package(pending, packet))
def _get_items(self):
@@ -113,7 +113,7 @@
logging.debug('Worker thread exiting')
items.remove(self._TERMINATE)
url = self.url + self.resource
- logging.debug('Sending %d items to %s' % (len(items), url))
+ logging.debug('Sending %d items to %s: %r', len(items), url, items)
try:
data = [('p', json.dumps(item)) for item in items]
data.append(('password', self.password))