Skip to content

Commit

Permalink
Add error msg to the log
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 101557c commit b462fe7
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")
logrus.Error("Failed to update experiment collection ", err)
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")
logrus.Error("Failed to update experiment collection ", err)
return err
}
}
Expand Down

0 comments on commit b462fe7

Please sign in to comment.