eduvpn / apple

app for iOS and macOS
Other
58 stars 18 forks source link

Include eduVPN server API server requests / errors in the log #435

Closed roop closed 2 years ago

roop commented 2 years ago

Resolves #424.

The log includes app-process events appearing before tunnel-process events, like this:

...
--- EOF ---

App:
2021-12-25 09:10:37.807 Beginning connection flow for server 'https://nl.eduvpn.org/'
2021-12-25 09:10:37.807 App version: 2.2.4 (1596)
2021-12-25 09:10:37.807 Getting server info for server 'https://nl.eduvpn.org/'
2021-12-25 09:10:39.773 Getting available profiles in server 'https://nl.eduvpn.org/portal/api.php/v3' using APIv3
2021-12-25 09:10:40.873 Got available profiles: amsterdam
2021-12-25 09:10:40.873 Continuing connection flow for server 'https://nl.eduvpn.org/' for profile id 'amsterdam'
2021-12-25 09:10:40.874 Getting tunnel config from API base URL 'https://nl.eduvpn.org/portal/api.php/v3' using APIv3
2021-12-25 09:10:42.088 Got OpenVPN tunnel config expiring at 2022-03-24 06:47:11 +0000
2021-12-25 09:10:42.089 Flushing app log to disk ...

Tunnel:
2021-12-25 09:10:42.375 INFO OpenVPNTunnelProvider.startTunnel():226 - Starting tunnel...
...