diff --git a/cmd/backup/script.go b/cmd/backup/script.go index 6d7a2a8..729650e 100644 --- a/cmd/backup/script.go +++ b/cmd/backup/script.go @@ -110,7 +110,7 @@ func newScript() (*script, error) { s.cli = cli } - logFunc := func(logType storage.LogLevel, context string, msg string, params ...interface{}) { + logFunc := func(logType storage.LogLevel, context string, msg string, params ...any) { switch logType { case storage.LogLevelWarning: s.logger.Warnf("["+context+"] "+msg, params...) diff --git a/internal/storage/storage.go b/internal/storage/storage.go index f0b4493..0385a9a 100644 --- a/internal/storage/storage.go +++ b/internal/storage/storage.go @@ -29,7 +29,7 @@ const ( LogLevelError ) -type Log func(logType LogLevel, context string, msg string, params ...interface{}) +type Log func(logType LogLevel, context string, msg string, params ...any) // PruneStats is a wrapper struct for returning stats after pruning type PruneStats struct {