Gin: Creating an Engine instance with the Logger and Recovery middleware already attached

Created on 23 Apr 2018  路  3Comments  路  Source: gin-gonic/gin

I'm trying to start a Golang/Gin project I wrote a while back on the computer I just bought, and I'm getting the following error:

[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:   export GIN_MODE=release
 - using code:  gin.SetMode(gin.ReleaseMode)

dial tcp [::1]:5432: connect: connection refused
exit status 1

I've never seen this before. My project was built using this as boilerplate and worked until now.

What does this error even mean? How do I fix it?

question

All 3 comments

5432? can't connect to postgres. see https://github.com/Massad/gin-boilerplate#installation

@appleboy: Yep, that was it. I forgot to import the database in my new installation. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

miketonks picture miketonks  路  25Comments

monikaYZ picture monikaYZ  路  24Comments

al3xandru picture al3xandru  路  30Comments

thinkerou picture thinkerou  路  23Comments

windweller picture windweller  路  20Comments