Skip to content

Commit 0d8b25b

Browse files
oauth/m2m: make "token fetched successfully" a debug log (#306)
The log is quite repetitive, and as we use this sql driver in our customer-facing product where customers see logs, the extra log seems like spam to customers. I think it would be nice to have it as debug log instead of info.
2 parents 56b8a73 + a058e0e commit 0d8b25b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/oauth/m2m/m2m.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (c *authClient) Authenticate(r *http.Request) error {
5757

5858
c.tokenSource = GetTokenSource(config)
5959
token, err := c.tokenSource.Token()
60-
log.Info().Msgf("token fetched successfully")
60+
log.Debug().Msgf("token fetched successfully")
6161
if err != nil {
6262
log.Err(err).Msg("failed to get token")
6363

0 commit comments

Comments
 (0)