Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Include full error when warning InvalidTimeZone (#11)
Browse files Browse the repository at this point in the history
Include full error when warning InvalidTimeZone
  • Loading branch information
hiddeco authored May 6, 2019
2 parents 3aca9c0 + edca2a8 commit 7507978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/cronjobber/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func (jm *TZCronJobController) syncAll() {
if err != nil {
// We validate that the TZCronJob time zone is valid.
// However, it is possible that the list of time zones could change at runtime which would cause an error when getting the time.
jm.recorder.Eventf(sj, v1.EventTypeWarning, "InvalidTimeZone", "Attempted to run a job with an invalid time zone: %v", sj.Spec.TimeZone)
jm.recorder.Eventf(sj, v1.EventTypeWarning, "InvalidTimeZone", "Attempted to run a job with an invalid time zone: %v. %v", sj.Spec.TimeZone, err)
}

syncOne(sj, jobsBySj[sj.UID], tzTime, jm.jobControl, jm.sjControl, jm.recorder, jm.logger)
Expand Down

0 comments on commit 7507978

Please sign in to comment.