osbuild-worker: unify logging statements

The code previously used both fmt.Printf and log.Printf. Simplify this
by using log.Printf everywhere.
This commit is contained in:
Martin Sehnoutka 2021-03-19 09:58:27 +01:00 committed by msehnout
parent a3d80cc924
commit 34d165be6c

View file

@ -65,7 +65,7 @@ func osbuildStagesToRPMs(stages []osbuild.StageResult) []koji.RPM {
func appendTargetError(res *worker.OSBuildJobResult, err error) {
errStr := err.Error()
fmt.Printf("target errored: %s", errStr)
log.Printf("target errored: %s", errStr)
res.TargetErrors = append(res.TargetErrors, errStr)
}