mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-22 12:34:17 +00:00
py-i2phosts-fetcher: add debug message
This commit is contained in:
parent
af60e019f8
commit
802c79b156
@ -75,6 +75,7 @@ for source in config['sources']:
|
|||||||
# prevent redownloading of hosts-file by passing If-Modified-Since http header
|
# prevent redownloading of hosts-file by passing If-Modified-Since http header
|
||||||
opener.addheaders = [('If-Modified-Since', last_modified)]
|
opener.addheaders = [('If-Modified-Since', last_modified)]
|
||||||
try:
|
try:
|
||||||
|
log.debug('fetching hosts from: %s', source_hostname)
|
||||||
resp = opener.open(source, timeout=60)
|
resp = opener.open(source, timeout=60)
|
||||||
except urllib2.URLError, e:
|
except urllib2.URLError, e:
|
||||||
if hasattr(e, 'reason'):
|
if hasattr(e, 'reason'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user