diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-29 15:45:24 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-29 15:45:24 +0200 |
| commit | 85862b19ea13090d763f31054c3d8244c220704d (patch) | |
| tree | e8cfc6e26f151094b51e11b4bb1e37e779ef7ea7 /src/oauth.go | |
| parent | a6a6d0d42d70aff21cf759b3c2d7645c7475c5f3 (diff) | |
Logging: Add more logging statements
Diffstat (limited to 'src/oauth.go')
| -rw-r--r-- | src/oauth.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/oauth.go b/src/oauth.go index dd86279..45daf10 100644 --- a/src/oauth.go +++ b/src/oauth.go @@ -297,8 +297,10 @@ func (oauth *OAuth) Login() error { func (oauth *OAuth) EnsureTokens() error { if oauth.isTokensExpired() { + GetVPNState().Log(LOG_INFO, "OAuth: Tokens are expired, retrying with refresh tokens") err := oauth.getTokensWithRefresh() if err != nil { + GetVPNState().Log(LOG_INFO, fmt.Sprintf("OAuth: Refresh tokens with error %v, retrying with a new login phase", err)) // log that we're getting tokens using login return oauth.Login() } |
