Skip to content

Commit

Permalink
fix: change log severity when artifact is not found (#10561)
Browse files Browse the repository at this point in the history
Signed-off-by: Ciprian Anton <[email protected]>
  • Loading branch information
CiprianAnton authored Feb 24, 2023
1 parent f918e3a commit 77da050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/argoexec/commands/emissary.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func saveArtifact(srcPath string) error {
return nil
}
if _, err := os.Stat(srcPath); os.IsNotExist(err) { // might be optional, so we ignore
logger.WithError(err).Errorf("cannot save artifact %s", srcPath)
logger.WithError(err).Warnf("cannot save artifact %s", srcPath)
return nil
}
dstPath := filepath.Join(varRunArgo, "/outputs/artifacts/", strings.TrimSuffix(srcPath, "/")+".tgz")
Expand Down

0 comments on commit 77da050

Please sign in to comment.