Skip to content

Commit

Permalink
Modifying the kind of log and making it resolve the specific issue
Browse files Browse the repository at this point in the history
  • Loading branch information
archita-ekkirala committed Aug 1, 2024
1 parent 13e9a19 commit b9aa025
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions endpointmanager/cmd/endpointpopulator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/streadway/amqp"

"github.com/onc-healthit/lantern-back-end/endpointmanager/pkg/endpointmanager/postgresql"
"strings"
)

func main() {
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit b9aa025

Please sign in to comment.