Skip to content

Commit 9a4aabb

Browse files
author
whrho
committed
chore(kiro): token refresh 실패 로그를 WARN에서 DEBUG로 변경
refresh token invalid_grant 같은 정상적인 토큰 만료 상황에서 WARN 로그가 과도하게 출력되는 문제 수정.
1 parent 4a2919a commit 9a4aabb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

internal/auth/kiro/refresh_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func RefreshWithGracefulDegradation(
4545
}
4646

4747
// Refresh failed - check if we can use the existing token
48-
log.Warnf("kiro: token refresh failed: %v", err)
48+
log.Debugf("kiro: token refresh failed: %v", err)
4949

5050
// Check if existing token is still valid (not expired)
5151
if existingAccessToken != "" && time.Now().Before(expiresAt) {

internal/auth/kiro/sso_oidc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ func (c *SSOOIDCClient) RefreshToken(ctx context.Context, clientID, clientSecret
765765
}
766766

767767
if resp.StatusCode != http.StatusOK {
768-
log.Warnf("token refresh failed (status %d): %s", resp.StatusCode, string(respBody))
768+
log.Debugf("token refresh failed (status %d): %s", resp.StatusCode, string(respBody))
769769
return nil, fmt.Errorf("token refresh failed (status %d): %s", resp.StatusCode, string(respBody))
770770
}
771771

0 commit comments

Comments
 (0)