DefGuard / client

Best WireGuard desktop client with Multi-Factor Authentication
66 stars 9 forks source link

Add more detailed logs to the client #206

Open teon opened 4 months ago

teon commented 4 months ago

Someone just posted an issue with connecting:

  1. My error - VPN could not be connected and have this error in the console - would be good to know what IP is it assigning?, what does it mean by internal error - the place where the internal error occurs there should be more logs:
[2024-03-27][13:52:47][ERROR][defguard_client::utils] Failed to create interface: status: Unavailable, message: "error trying to connect: tcp connect error: Can't assign requested address (os error 49)", details: [], metadata: MetadataMap { headers: {} }
[2024-03-27][13:52:47][ERROR][k0@tauri://localhost/assets/index-3758b28b.js:68:7119] Invoking connect FAILED
"Internal error"
[2024-03-27][13:52:47][ERROR][k0@tauri://localhost/assets/index-3758b28b.js:68:7119] Error handling interface: Internal error
[2024-03-27][13:52:49][ERROR][k0@tauri://localhost/assets/index-3758b28b.js:68:7119] Invoking get_latest_app_version FAILED
{"name":"TimeoutError","message":"Promise timed out after 5000 milliseconds"}
  1. A domain in place of VPN server IP (we support IP):
    2024-02-15][12:32:23][INFO][defguard_client::commands] Instances retrieved(0)
    [2024-02-15][12:32:26][INFO][defguard_client::commands] Instance created.
    [2024-02-15][12:32:26][INFO][defguard_client::commands] Instances retrieved(1)
    [2024-02-15][12:32:32][ERROR][k0@tauri://localhost/assets/index-d5216b38.js:68:7119] Invoking connect FAILED
    "IP address parse error: invalid socket address syntax"
    [2024-02-15][12:32:32][ERROR][k0@tauri://localhost/assets/index-d5216b38.js:68:7119] Error handling interface: IP address parse error: invalid socket address syntax

    Logs should print the IPs and more details..