summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-09-28 15:52:02 +0200
committeremkael <emkael@tlen.pl>2018-09-28 15:52:02 +0200
commitfe41a61c97e558abec388bab81c041ae562fce37 (patch)
tree56fc3c41e69a737443782568162db4f694fbfa48
parent1ab6233374e1c25e3f9f58db98b547125cbef452 (diff)
Debug information on remote URL fetch
-rw-r--r--jfr_playoff/remote.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/jfr_playoff/remote.py b/jfr_playoff/remote.py
index 2deb7ce..f0bf6c2 100644
--- a/jfr_playoff/remote.py
+++ b/jfr_playoff/remote.py
@@ -21,4 +21,7 @@ class RemoteUrl:
if encoding_match:
request.encoding = encoding_match.group(2)
cls.url_cache[url] = request.text
+ PlayoffLogger.get('remote').info(
+ 'fetched %d bytes from remote location',
+ len(cls.url_cache[url]))
return bs(cls.url_cache[url], 'lxml')