From c7e96669e573b9693f8a1922ee358f4407edf381 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 27 Jul 2023 11:12:26 +0200 Subject: [PATCH] [core] Include payload size for GetEnvironment integrated services data --- core/server.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/server.go b/core/server.go index b29fc1ba..a6a9861c 100644 --- a/core/server.go +++ b/core/server.go @@ -27,6 +27,7 @@ package core import ( + "encoding/json" "runtime" "sort" "strconv" @@ -447,6 +448,13 @@ func (m *RpcServer) GetEnvironment(cxt context.Context, req *pb.GetEnvironmentRe reply.Workflow = workflowToRoleTree(env.Workflow()) } reply.Environment.IncludedDetectors = env.GetActiveDetectors().StringList() + + jsonISData, err := json.Marshal(isEnvData) + log.WithPrefix("rpcserver"). + WithField("method", "GetEnvironment"). + WithField("level", infologger.IL_Support). + WithField("intServPayloadSize", len(jsonISData)). + Infof("returning payload incl. integrated services data for %d services", len(isEnvData)) return }