Commit eebd3c9e authored by ilevy@chromium.org's avatar ilevy@chromium.org

Add rietveld POST logging

I've found it helpful and instructive to see what we're posting to
rietveld. Let's add it as a debug log for others too.  Can be helpful
to debug certain network issues.

Review URL: https://chromiumcodereview.appspot.com/11778015

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@175361 0039d316-1c4b-4281-b951-d872f2087c98
parent b25d95cd
...@@ -357,6 +357,7 @@ class Rietveld(object): ...@@ -357,6 +357,7 @@ class Rietveld(object):
def _send(self, request_path, **kwargs): def _send(self, request_path, **kwargs):
"""Sends a POST/GET to Rietveld. Returns the response body.""" """Sends a POST/GET to Rietveld. Returns the response body."""
logging.debug('POSTing to %s, args %s.', request_path, kwargs)
try: try:
# Sadly, upload.py calls ErrorExit() which does a sys.exit(1) on HTTP # Sadly, upload.py calls ErrorExit() which does a sys.exit(1) on HTTP
# 500 in AbstractRpcServer.Send(). # 500 in AbstractRpcServer.Send().
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment