From 3ce1faf47e280753c1a452ea92acac5a69cdf937 Mon Sep 17 00:00:00 2001 From: ztonny Date: Fri, 29 Aug 2025 14:00:07 +0800 Subject: [PATCH] [Bug] fix issue #421 change sc.EventString() to err.Error() in order to avoid nil pointer happen; --- .../disaggregated_cluster/computegroups/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/sub_controller/disaggregated_cluster/computegroups/controller.go b/pkg/controller/sub_controller/disaggregated_cluster/computegroups/controller.go index 6f8dbd4a..57257fd3 100644 --- a/pkg/controller/sub_controller/disaggregated_cluster/computegroups/controller.go +++ b/pkg/controller/sub_controller/disaggregated_cluster/computegroups/controller.go @@ -89,7 +89,7 @@ func (dcgs *DisaggregatedComputeGroupsController) Sync(ctx context.Context, obj dcgs.K8srecorder.Event(ddc, string(event.Type), string(event.Reason), event.Message) } errs = append(errs, err) - klog.Errorf("disaggregatedComputeGroupsController computeGroups sync failed, compute group Uniqueid %s sync failed, err=%s", cgs[i].UniqueId, sc.EventString(event)) + klog.Errorf("disaggregatedComputeGroupsController computeGroups sync failed, compute group Uniqueid %s sync failed, err=%s", cgs[i].UniqueId, err.Error()) } }