changed env for DB to be more DB agnostic
This commit is contained in:
parent
83ba0f6464
commit
9c98059972
4
main.go
4
main.go
@ -22,7 +22,7 @@ func init() {
|
|||||||
log.SetOutput(os.Stdout)
|
log.SetOutput(os.Stdout)
|
||||||
|
|
||||||
// Only log the warning severity or above.
|
// Only log the warning severity or above.
|
||||||
log.SetLevel(log.InfoLevel)
|
log.SetLevel(log.DebugLevel)
|
||||||
|
|
||||||
// Logging Method Name
|
// Logging Method Name
|
||||||
//log.SetReportCaller(true)
|
//log.SetReportCaller(true)
|
||||||
@ -43,7 +43,7 @@ func main() {
|
|||||||
case "neo4j":
|
case "neo4j":
|
||||||
log.Println("Setup Neo4J Connection")
|
log.Println("Setup Neo4J Connection")
|
||||||
graphConnection = neo4j.NewNeo4JConnection()
|
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 {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user