Skip to content

Commit e72f112

Browse files
committed
chg: [generator] logging updated
1 parent df73d5c commit e72f112

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
beautifulsoup4==4.9.1
1+
beautifulsoup4
22
pyOpenSSL==19.1.0
33
python-dateutil==2.8.1
4-
requests==2.24.0
4+
requests
55
dnspython
66
pyasn1
77
pyasn1-modules

tools/generator.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def download_to_file(url, file):
4242
user_agent = {
4343
"User-agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0"}
4444
try:
45+
logging.info(f'download_to_file - fetching url: {url}')
4546
r = requests.head(url, headers=user_agent)
4647
url_datetime = parsedate(r.headers['Last-Modified']).astimezone()
4748
file_datetime = datetime.datetime.fromtimestamp(

0 commit comments

Comments
 (0)