From 2d639aab6f62e954b2ce5237228c8195b7033e5c Mon Sep 17 00:00:00 2001 From: joreetz-otto Date: Fri, 15 Dec 2023 10:02:02 +0100 Subject: [PATCH] Dont force flush logs --- pkg/gcp/services.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/gcp/services.go b/pkg/gcp/services.go index ea54bb6..b54b1f1 100644 --- a/pkg/gcp/services.go +++ b/pkg/gcp/services.go @@ -120,8 +120,6 @@ func DiscoverServices(project, serviceName string, tracerProviderOptions []sdktr if opt.gkeAutoDiscoverMetaData { metadata, err := gke.GetMetaData() if err != nil { - defer logger.Flush() - logger.Log(logging.Entry{ Severity: logging.Info, Payload: fmt.Sprintf("Error getting MetaData: %s", err),