Token expiration log message: info not error
The following discussion from !54 (merged) should be addressed:
-
@fborgesa started a discussion: (+1 comment) @kosamara Still working, on a side note whenever the token expires we get this logged:
{ "level": "error", "ts": 1599220429.6657739, "logger": "AuthzAPIClient", "msg": "Failed to get Access Token", "error": "oidc: token is expired (Token Expiry: 2020-09-04 13:02:14 +0200 CEST)", "stacktrace": "github.com/go-logr/zapr.(*zapLogger).Error\n\t/home/..... }
Should we keep the log like this or make it an "info" given that this is something to be expected to happen every once in a while?