From b462fe7635435792e7752e38223c9445e0ef8719 Mon Sep 17 00:00:00 2001 From: DongYoung Kim Date: Sat, 28 Sep 2024 03:00:56 +0900 Subject: [PATCH] Add error msg to the log Signed-off-by: DongYoung Kim --- .../server/pkg/chaos_experiment_run/handler/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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..3edbf9ae634 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.Error("Failed to update experiment collection ", err) 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.Error("Failed to update experiment collection ", err) return err } }