diff options
author | emkael <emkael@tlen.pl> | 2018-09-28 15:52:02 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-09-28 15:52:02 +0200 |
commit | fe41a61c97e558abec388bab81c041ae562fce37 (patch) | |
tree | 56fc3c41e69a737443782568162db4f694fbfa48 /jfr_playoff | |
parent | 1ab6233374e1c25e3f9f58db98b547125cbef452 (diff) |
Debug information on remote URL fetch
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/remote.py | 3 |
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') |