Skip to content

Commit

Permalink
refactor: Add mongo URI print on fail to connect
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasClaisse committed Oct 19, 2020
1 parent 829e74f commit 30b0448
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions microservices/user/app/database/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func ConnectToMongo() {

client, err := mongo.NewClient(options.Client().ApplyURI(mongoURI))
if err != nil {
log.Println(mongoURI)
log.Fatal(err)
}
ctx, _ := context.WithTimeout(context.Background(), 10*time.Second)
Expand Down

0 comments on commit 30b0448

Please sign in to comment.