Merge pull request #6358 from jonyhy96/feat-error

refactor: functions for error log and error return
This commit is contained in:
Phil Estes
2021-12-14 10:16:54 -05:00
committed by GitHub
30 changed files with 80 additions and 80 deletions

View File

@@ -272,7 +272,7 @@ func (em *eventMonitor) start() <-chan error {
case err := <-em.errCh:
// Close errCh in defer directly if there is no error.
if err != nil {
logrus.WithError(err).Errorf("Failed to handle event stream")
logrus.WithError(err).Error("Failed to handle event stream")
errCh <- err
}
return