Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: async_push.py

Issue 142793004: Updated log messages in async_push for better debuggability (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/commit-queue
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: async_push.py
diff --git a/async_push.py b/async_push.py
index 9908da939f81b9126aeb4cbe67e66de2df310420..2e6d86137ff03add83e3389329e472467a6d7779 100644
--- a/async_push.py
+++ b/async_push.py
@@ -83,7 +83,7 @@ class AsyncPush(AsyncPushNoop):
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 @@ class AsyncPush(AsyncPushNoop):
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))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698