Add logging

This commit is contained in:
Micah Lee 2021-11-12 16:21:17 -08:00
parent f00d2cc0b0
commit 3464a24e69
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -413,6 +413,9 @@ class GuiCommon:
if self.common.platform == "Linux":
base_path = self.get_resource_path("tor")
if os.path.exists(base_path):
self.common.log(
"GuiCommon", "get_tor_paths", "using paths in resources"
)
tor_path = os.path.join(base_path, "tor")
tor_geo_ip_file_path = os.path.join(base_path, "geoip")
tor_geo_ipv6_file_path = os.path.join(base_path, "geoip6")
@ -421,6 +424,7 @@ class GuiCommon:
meek_client_file_path = os.path.join(base_path, "meek-client")
else:
# Fallback to looking in the path
self.common.log("GuiCommon", "get_tor_paths", "using paths from PATH")
tor_path = shutil.which("tor")
obfs4proxy_file_path = shutil.which("obfs4proxy")
snowflake_file_path = shutil.which("snowflake-client")