Skip to content

Commit

Permalink
Change error to log message for better debugging
Browse files Browse the repository at this point in the history
Signed-off-by: DongYoung Kim <[email protected]>
  • Loading branch information
kwx4957 committed Sep 28, 2024
1 parent b462fe7 commit 74ffc90
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ func (c *ChaosExperimentRunHandler) ChaosExperimentRunEvent(event model.Experime

err = c.chaosExperimentOperator.UpdateChaosExperiment(sessionContext, filter, update)
if err != nil {
logrus.Error("Failed to update experiment collection ", err)
logrus.WithError(err).Error("Failed to update experiment collection")
return err
}
} else if experimentRunCount > 0 {
Expand Down Expand Up @@ -1257,7 +1257,7 @@ func (c *ChaosExperimentRunHandler) ChaosExperimentRunEvent(event model.Experime

err = c.chaosExperimentOperator.UpdateChaosExperiment(sessionContext, filter, update)
if err != nil {
logrus.Error("Failed to update experiment collection ", err)
logrus.WithError(err).Error("Failed to update experiment collection")
return err
}
}
Expand Down

0 comments on commit 74ffc90

Please sign in to comment.