Skip to content

Commit c819b1e

Browse files
committed
pkg: rhcos: use Errorf instead of Error
Otherwise the log message looks like ``` time="2023-04-06T17:03:26Z" level=error msg="could not fetch the rhcos stream data: %wfailed to read embedded CoreOS stream metadata: open data/coreos/rhcos.json: no such file or directory" ```
1 parent b5f0545 commit c819b1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/rhcos/ami_regions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
func AMIRegions(architecture types.Architecture) sets.String {
1515
stream, err := FetchCoreOSBuild(context.Background())
1616
if err != nil {
17-
logrus.Error("could not fetch the rhcos stream data: %w", err)
17+
logrus.Errorf("could not fetch the rhcos stream data: %v", err)
1818
return nil
1919
}
2020
rpmArch := arch.RpmArch(string(architecture))

0 commit comments

Comments
 (0)