fix: string format when log IAM refresh take over 5s (#20331)

This commit is contained in:
jiuker 2024-08-27 14:40:33 +08:00 committed by GitHub
parent 993b97f1db
commit 1a2de1bdde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ func (sys *IAMSys) periodicRoutines(ctx context.Context, baseInterval time.Durat
took := time.Since(refreshStart).Seconds()
if took > maxDurationSecondsForLog {
// Log if we took a lot of time to load.
logger.Info("IAM refresh took (duration: %s)", took)
logger.Info("IAM refresh took (duration: %.2fs)", took)
}
}