mirror of
https://github.com/minio/minio.git
synced 2025-03-29 00:33:42 -04:00
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()
|
took := time.Since(refreshStart).Seconds()
|
||||||
if took > maxDurationSecondsForLog {
|
if took > maxDurationSecondsForLog {
|
||||||
// Log if we took a lot of time to load.
|
// 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…
x
Reference in New Issue
Block a user