From 85862b19ea13090d763f31054c3d8244c220704d Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 29 Mar 2022 15:45:24 +0200 Subject: Logging: Add more logging statements --- src/oauth.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/oauth.go') 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() } -- cgit v1.2.3