Commit 53a6224a authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis Committed by Christos Stavrakakis
Browse files

More log messages in AstakosClient

Log retries.
Log hashed tokens.
parent d6c6021d
......@@ -35,6 +35,7 @@ import logging
import urlparse
import httplib
import urllib
import hashlib
from copy import copy
import simplejson
......@@ -128,6 +129,7 @@ class AstakosClient():
# In case of Unauthorized response
# or Not Found return immediately
raise err"AstakosClient request failed..retrying")
attemps += 1
return decorator
......@@ -136,9 +138,12 @@ class AstakosClient():
def _callAstakos(self, token, request_path,
headers=None, body=None, method="GET"):
"""Make the actual call to Astakos Service"""
hashed_token = hashlib.sha1()
"Make a %s request to %s with headers %s "
"and body %s" % (method, request_path, headers, body))
"Make a %s request to %s using token %s "
"with headers %s and body %s"
% (method, request_path, hashed_token.hexdigest(), headers, body))
# Check Input
if not token:
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