diff --git a/chaoscenter/graphql/server/pkg/chaos_experiment_run/handler/handler.go b/chaoscenter/graphql/server/pkg/chaos_experiment_run/handler/handler.go index eddb54e4fb3..166abe19973 100644 --- a/chaoscenter/graphql/server/pkg/chaos_experiment_run/handler/handler.go +++ b/chaoscenter/graphql/server/pkg/chaos_experiment_run/handler/handler.go @@ -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.WithError(err).Error("Failed to update experiment collection") return err } } else if experimentRunCount > 0 { @@ -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.WithError(err).Error("Failed to update experiment collection") return err } }