gin-gonic / gin

Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
https://gin-gonic.com/
MIT License
78.02k stars 7.97k forks source link

Creating an Engine instance with the Logger and Recovery middleware already attached #1330

Closed cxk280 closed 6 years ago

cxk280 commented 6 years ago

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?

thinkerou commented 6 years ago

Please see here https://github.com/gin-gonic/gin/issues/1115

appleboy commented 6 years ago

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

cxk280 commented 6 years ago

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