Removed a print, added the info to a correct debug logging call

This commit is contained in:
2012-06-06 21:30:18 +01:00
parent 3b28d3a1a3
commit ea33455b6a

View File

@@ -68,10 +68,9 @@ class CachedDocumentManager(models.Manager):
url = self.construct_url(url_path, params)
doc_key = sha1(url).hexdigest()
logger.debug('Requesting URL: %s' % url)
logger.debug('Requesting URL: %s (Key: %s)' % (url, doc_key))
try:
print doc_key
doc = super(CachedDocumentManager, self).get_query_set().get(pk=doc_key)
created = False
except self.model.DoesNotExist: