From 6034e6a90299fb0efa40e26757669ec88ed50075 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Fri, 27 Aug 2021 15:05:12 +0200 Subject: [PATCH] print proper local archive in log message --- cmd/backup/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/backup/main.go b/cmd/backup/main.go index aa25abd..9fceffa 100644 --- a/cmd/backup/main.go +++ b/cmd/backup/main.go @@ -221,7 +221,7 @@ func (s *script) stopContainers() (func() error, error) { } } if serviceMatch.ID == "" { - return fmt.Errorf("stopContainersAndRun: Couldn't find service with name %s", serviceName) + return fmt.Errorf("stopContainersAndRun: couldn't find service with name %s", serviceName) } serviceMatch.Spec.TaskTemplate.ForceUpdate = 1 _, err := s.cli.ServiceUpdate( @@ -318,7 +318,7 @@ func (s *script) copyBackup() error { if err := copy(s.file, path.Join(s.c.BackupArchive, name)); err != nil { return fmt.Errorf("copyBackup: error copying file to local archive: %w", err) } - s.logger.Infof("Stored copy of backup `%s` in local archive `%s`", s.file, s.c.AwsS3BucketName) + s.logger.Infof("Stored copy of backup `%s` in local archive `%s`", s.file, s.c.BackupArchive) } return nil }