diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-25 10:20:42 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-26 14:12:43 +0300 |
commit | b0b9d35e9cb00c42d4039f89594b0d0cb3244ef3 (patch) | |
tree | 10cff05cacdea2471409e2462d0d594857adca83 /cmd | |
parent | 2bbd7cd2cbae2912b32bc7c5541cdcd81dbacf87 (diff) |
log: Drop `Warnf()` function from `Logger` interface
Remove the `Warnf()` function from the `Logger` interface. Please refer
to the preceding commit that removes `Debugf()` for the motivation
behind this change.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gitaly-backup/restore.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gitaly-backup/restore.go b/cmd/gitaly-backup/restore.go index 91cd398da..d75e72399 100644 --- a/cmd/gitaly-backup/restore.go +++ b/cmd/gitaly-backup/restore.go @@ -80,7 +80,7 @@ func (cmd *restoreSubcommand) Run(ctx context.Context, logger log.Logger, stdin if err != nil { // Treat RemoveAll failures as soft failures until we can determine // how often it fails. - logger.WithError(err).Warnf("failed to remove all repositories from %s", storageName) + logger.WithError(err).WithField("storage_name", storageName).Warn("failed to remove all repositories") } } |