Drop logrus dependency, log using slog package from stdlib (#247)

This commit is contained in:
Frederik Ring
2023-08-10 19:41:03 +02:00
committed by GitHub
parent a93ff6fe09
commit 67d978f515
5 changed files with 57 additions and 36 deletions

View File

@@ -41,9 +41,11 @@ func (s *script) lock(lockfile string) (func() error, error) {
}
if !s.encounteredLock {
s.logger.Infof(
"Exclusive lock was not available on first attempt. Will retry until it becomes available or the timeout of %s is exceeded.",
s.c.LockTimeout,
s.logger.Info(
fmt.Sprintf(
"Exclusive lock was not available on first attempt. Will retry until it becomes available or the timeout of %s is exceeded.",
s.c.LockTimeout,
),
)
s.encounteredLock = true
}