Merge pull request #6459 from blackpiglet/6001_fix

Add exit code log and possible memory shortage warning log for Restic command failure
This commit is contained in:
lyndon
2023-07-07 09:24:16 +08:00
committed by GitHub
4 changed files with 28 additions and 2 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ func (r *RepositoryService) exec(cmd *restic.Command, bsl *velerov1api.BackupSto
cmd.ExtraFlags = append(cmd.ExtraFlags, skipTLSRet)
}
stdout, stderr, err := veleroexec.RunCommand(cmd.Cmd())
stdout, stderr, err := veleroexec.RunCommandWithLog(cmd.Cmd(), r.log)
r.log.WithFields(logrus.Fields{
"repository": cmd.RepoName(),
"command": cmd.String(),