From f321e5a9341aa68f53e049567344a714a4d0bacc Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 6 Feb 2021 23:23:47 +0100 Subject: [PATCH] fetch: more describing debug message --- fetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch.py b/fetch.py index 78c6455..1750d08 100644 --- a/fetch.py +++ b/fetch.py @@ -29,7 +29,7 @@ def fetch_contents(url, head = False): 'Cache-Control: max-age=0', ] if config.ppf.debug: - _log("connecting to %s..."%url, "debug") + _log("connecting to %s... (header: %s)" % (url, str(head)), "debug") while True: proxies = [rocksock.RocksockProxyFromURL('socks4://%s' % random.choice( config.torhosts ))] http = RsHttp(host,ssl=ssl,port=port, keep_alive=True, timeout=config.ppf.timeout, max_tries=config.ppf.http_retries, follow_redirects=True, auto_set_cookies=True, proxies=proxies, user_agent='Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0')