From cae18a32891b8de555789997526e32ace9c3d8a1 Mon Sep 17 00:00:00 2001 From: indresh-28 Date: Wed, 9 Aug 2023 22:40:07 +0530 Subject: [PATCH] TEST CODE --- server/pkg/api/cluster_apps.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/pkg/api/cluster_apps.go b/server/pkg/api/cluster_apps.go index d01af5e9..ed85c782 100644 --- a/server/pkg/api/cluster_apps.go +++ b/server/pkg/api/cluster_apps.go @@ -34,6 +34,8 @@ func (s *Server) GetClusterApps(ctx context.Context, request *serverpb.GetCluste StatusMessage: "failed to get cluster application from agent"}, nil } + s.log.Info("DATA RECIED====", resp.AppData) + appConfigData, err := json.Marshal(resp.AppData) if err != nil { s.log.Error("failed to marshall appConfig", err) @@ -41,6 +43,7 @@ func (s *Server) GetClusterApps(ctx context.Context, request *serverpb.GetCluste StatusMessage: "failed to marshall appConfig"}, nil } + s.log.Info("DATA RECIED==== Bytes===", appConfigData) var clusterAppConfig []*serverpb.ClusterAppConfig err = json.Unmarshal(appConfigData, &clusterAppConfig) if err != nil { @@ -79,6 +82,7 @@ func (s *Server) GetClusterAppLaunchConfigs(ctx context.Context, request *server StatusMessage: "failed to get cluster application launches from agent"}, err } + s.log.Info("DATA appConfigData==== Bytes===", resp.LaunchConfigList, resp) appConfigData, err := json.Marshal(resp.LaunchConfigList) if err != nil { s.log.Error("failed to marshall app launches", err) @@ -86,6 +90,8 @@ func (s *Server) GetClusterAppLaunchConfigs(ctx context.Context, request *server StatusMessage: "failed to marshall app launches"}, nil } + s.log.Info("DATA appConfigData==== Bytes===", appConfigData) + var clusterAppLaunchConfig []*serverpb.AppLaunchConfig err = json.Unmarshal(appConfigData, &clusterAppLaunchConfig) if err != nil {