cloudapi/v2: log manifest generation errors as a warning
Sometimes invalid customisations slip through, and this will make it easier to read the logs looking for them.
This commit is contained in:
parent
8ec783a4dd
commit
6e4cade608
1 changed files with 2 additions and 0 deletions
|
|
@ -120,6 +120,7 @@ func (s *Server) enqueueCompose(distribution distro.Distro, bp blueprint.Bluepri
|
|||
ibp := blueprint.Convert(bp)
|
||||
manifestSource, _, err := ir.imageType.Manifest(&ibp, ir.imageOptions, ir.repositories, manifestSeed)
|
||||
if err != nil {
|
||||
logrus.Warningf("ErrorEnqueueingJob, failed generating manifest: %v", err)
|
||||
return id, HTTPErrorWithInternal(ErrorEnqueueingJob, err)
|
||||
}
|
||||
|
||||
|
|
@ -241,6 +242,7 @@ func (s *Server) enqueueKojiCompose(taskID uint64, server, name, version, releas
|
|||
ibp := blueprint.Convert(bp)
|
||||
manifestSource, _, err := ir.imageType.Manifest(&ibp, ir.imageOptions, ir.repositories, manifestSeed)
|
||||
if err != nil {
|
||||
logrus.Errorf("ErrorEnqueueingJob, failed generating manifest: %v", err)
|
||||
return id, HTTPErrorWithInternal(ErrorEnqueueingJob, err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue