Bug 1501802 - Update tooltool.py fetch_file to log.info exceptions instead of log.debug, r=garbas

--HG--
extra : rebase_source : 3268310f08f1911273ab8bff9f8db465ad75e32c
extra : intermediate-source : 565215cf2e5e42034860257f4ea4b5d0b0adf75d
extra : source : 4034fbcc0a551d86deb3463115c0cf7f8c228b65
This commit is contained in:
Bob Clary 2018-11-10 03:10:08 -08:00
Родитель 3e5153cd10
Коммит 28890c828c
2 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -494,10 +494,9 @@ def fetch_file(base_urls, file_record, grabchunk=1024 * 4, auth_file=None, regio
(file_record.filename, base_url, temp_path))
fetched_path = temp_path
break
except (urllib2.URLError, urllib2.HTTPError, ValueError) as e:
except (urllib2.URLError, urllib2.HTTPError, ValueError):
log.info("...failed to fetch '%s' from %s" %
(file_record.filename, base_url))
log.debug("%s" % e)
(file_record.filename, base_url), exc_info=True)
except IOError: # pragma: no cover
log.info("failed to write to temporary file for '%s'" %
file_record.filename, exc_info=True)

Просмотреть файл

@ -492,10 +492,9 @@ def fetch_file(base_urls, file_record, grabchunk=1024 * 4, auth_file=None, regio
(file_record.filename, base_url, temp_path))
fetched_path = temp_path
break
except (urllib2.URLError, urllib2.HTTPError, ValueError) as e:
except (urllib2.URLError, urllib2.HTTPError, ValueError):
log.info("...failed to fetch '%s' from %s" %
(file_record.filename, base_url))
log.debug("%s" % e)
(file_record.filename, base_url), exc_info=True)
except IOError: # pragma: no cover
log.info("failed to write to temporary file for '%s'" %
file_record.filename, exc_info=True)