diff --git a/engine/podwatcher/watcher.go b/engine/podwatcher/watcher.go index d5b6ef9..4b66f0f 100644 --- a/engine/podwatcher/watcher.go +++ b/engine/podwatcher/watcher.go @@ -285,17 +285,12 @@ func (pw *PodWatcher) notifyClients(c *containerWatchInfo) { case stepStateRunning, stepStateFinished: pw.notifyClientsContainerChange(c) case stepStatePlaceholderFailed, stepStateFailed: - failedContainer := FailedContainerError{ + pw.notifyClientsError(c, FailedContainerError{ container: c.id, exitCode: c.exitCode, reason: c.reason, image: c.image, - } - logrus.WithField("pod", pw.podName). - WithField("container", c.id). - WithField("stepState", c.stepState). - Error(failedContainer.Error()) - pw.notifyClientsError(c, failedContainer) + }) } }