Browse Source

py-i2phosts-fetcher: add debug message

pull/1/head
Hidden Z 14 years ago
parent
commit
802c79b156
  1. 1
      py-i2phosts-fetcher

1
py-i2phosts-fetcher

@ -75,6 +75,7 @@ for source in config['sources']: @@ -75,6 +75,7 @@ for source in config['sources']:
# prevent redownloading of hosts-file by passing If-Modified-Since http header
opener.addheaders = [('If-Modified-Since', last_modified)]
try:
log.debug('fetching hosts from: %s', source_hostname)
resp = opener.open(source, timeout=60)
except urllib2.URLError, e:
if hasattr(e, 'reason'):

Loading…
Cancel
Save