worker: Properly log successful image builds
This will make counting successful image builds in Splunk and Cloudwatch much simpler and robust.
This commit is contained in:
parent
657b7a5833
commit
cdddc3f81c
2 changed files with 4 additions and 0 deletions
|
|
@ -61,6 +61,8 @@ func validateKojiResult(result *worker.OSBuildKojiJobResult, jobID string) {
|
|||
reason := "osbuild job was unsuccessful"
|
||||
logWithId.Errorf("osbuild job failed: %s", reason)
|
||||
result.JobError = clienterrors.WorkerClientError(clienterrors.ErrorBuildJob, reason)
|
||||
} else {
|
||||
logWithId.Infof("osbuild-koji job succeeded")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -62,6 +62,8 @@ func validateResult(result *worker.OSBuildJobResult, jobID string) {
|
|||
logWithId.Errorf("osbuild job failed: %s", reason)
|
||||
result.JobError = clienterrors.WorkerClientError(clienterrors.ErrorBuildJob, reason)
|
||||
return
|
||||
} else {
|
||||
logWithId.Infof("osbuild job succeeded")
|
||||
}
|
||||
result.Success = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue