Skip to content

Commit 2d298aa

Browse files
committed
add more logging
1 parent 0511e94 commit 2d298aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wireguard.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ def test_interface(interface_name):
2929
try:
3030
result = subprocess.run(curl_cmd, capture_output=True, text=True, check=True)
3131
data = json.loads(result.stdout)
32-
except (subprocess.CalledProcessError, json.JSONDecodeError):
32+
except (subprocess.CalledProcessError, json.JSONDecodeError) as e:
33+
logging.error("Curl could not connect to Mullvad or json was not valid")
34+
logging.error(e)
3335
return False
3436
try:
3537
if data["mullvad_exit_ip"] is True:

0 commit comments

Comments
 (0)