mirror of https://github.com/minio/minio.git
fix: string format when log IAM refresh take over 5s (#20331)
This commit is contained in:
parent
993b97f1db
commit
1a2de1bdde
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue