From e155f19d0d2954cac875751bc422f641b37c565a Mon Sep 17 00:00:00 2001 From: rembo10 Date: Thu, 1 May 2014 00:14:10 -0700 Subject: [PATCH] Debug logging --- headphones/utorrent.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/headphones/utorrent.py b/headphones/utorrent.py index e11dc958..ce39020a 100644 --- a/headphones/utorrent.py +++ b/headphones/utorrent.py @@ -37,7 +37,7 @@ def addTorrent(link, title): password = headphones.UTORRENT_PASSWORD label = headphones.UTORRENT_LABEL token = '' - + logger.info("2") if not host.startswith('http'): host = 'http://' + host @@ -52,18 +52,22 @@ def addTorrent(link, title): # Retrieve session id auth = (username, password) if username and password else None token_request = request.request_response(host + 'token.html', auth=auth) + logger.info("3") token = re.findall('(.*?)