From 9c98059972b88fd22c89189325b49add28ebf379 Mon Sep 17 00:00:00 2001 From: David Janowski Date: Thu, 22 Jun 2023 11:00:08 +0200 Subject: [PATCH] changed env for DB to be more DB agnostic --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 13a17a6..c9dea53 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,7 @@ func init() { log.SetOutput(os.Stdout) // Only log the warning severity or above. - log.SetLevel(log.InfoLevel) + log.SetLevel(log.DebugLevel) // Logging Method Name //log.SetReportCaller(true) @@ -43,7 +43,7 @@ func main() { case "neo4j": log.Println("Setup Neo4J Connection") graphConnection = neo4j.NewNeo4JConnection() - err = graphConnection.Connect(ctx, config.DBEndpoint, config.Neo4jUsername, config.Neo4jPassword) + err = graphConnection.Connect(ctx, config.DBEndpoint, config.DBUsername, config.DBPassword) if err != nil { panic(err) }