From b9aa025c9396767a6960c3b89f2da001b1be158d Mon Sep 17 00:00:00 2001 From: archita-ekkirala Date: Thu, 1 Aug 2024 13:45:45 -0500 Subject: [PATCH] Modifying the kind of log and making it resolve the specific issue --- endpointmanager/cmd/endpointpopulator/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/endpointmanager/cmd/endpointpopulator/main.go b/endpointmanager/cmd/endpointpopulator/main.go index c4a683bee..d9849548b 100644 --- a/endpointmanager/cmd/endpointpopulator/main.go +++ b/endpointmanager/cmd/endpointpopulator/main.go @@ -17,6 +17,7 @@ import ( "github.com/streadway/amqp" "github.com/onc-healthit/lantern-back-end/endpointmanager/pkg/endpointmanager/postgresql" + "strings" ) func main() { @@ -74,8 +75,8 @@ func main() { } listOfEndpoints, err := fetcher.GetEndpointsFromFilepath(endpointsFile, format, source, listURL) - if err != nil { - fmt.Println("Endpoint List Parsing Error: ", err) + if err!=nil && strings.Contains(err.Error(), "incorrect reference value") { + log.Error("Endpoint List Parsing Error: ", err) } err = config.SetupConfig()