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/api.go | |
| parent | a6a6d0d42d70aff21cf759b3c2d7645c7475c5f3 (diff) | |
Logging: Add more logging statements
Diffstat (limited to 'src/api.go')
| -rw-r--r-- | src/api.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -39,6 +39,7 @@ func (server *Server) apiAuthenticatedRetry(method string, endpoint string, opts var error *HTTPStatusError if errors.As(bodyErr, &error) { + GetVPNState().Log(LOG_INFO, fmt.Sprintf("API: Got HTTP error %v, retrying authenticated", bodyErr)) // Tell the method that the token is expired server.OAuth.Token.ExpiredTimestamp = GenerateTimeSeconds() return server.apiAuthenticated(method, endpoint, opts) |
