From eebd3c9e53bf4833cd4bb832de6bd62190c410d3 Mon Sep 17 00:00:00 2001 From: "ilevy@chromium.org" Date: Mon, 7 Jan 2013 18:34:49 +0000 Subject: [PATCH] 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 --- rietveld.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rietveld.py b/rietveld.py index b707913bb3..207cc9da83 100644 --- a/rietveld.py +++ b/rietveld.py @@ -357,6 +357,7 @@ class Rietveld(object): def _send(self, request_path, **kwargs): """Sends a POST/GET to Rietveld. Returns the response body.""" + logging.debug('POSTing to %s, args %s.', request_path, kwargs) try: # Sadly, upload.py calls ErrorExit() which does a sys.exit(1) on HTTP # 500 in AbstractRpcServer.Send().