Added a basic log message for when starting up the app

This commit is contained in:
Skuli Oskarsson 2014-07-01 09:41:33 +00:00
parent df22fa4489
commit eecd18d7bb

3
gin.go
View File

@ -115,7 +115,8 @@ func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request) {
} }
func (engine *Engine) Run(addr string) { func (engine *Engine) Run(addr string) {
http.ListenAndServe(addr, engine) log.Println("You are now running gin on port: ", addr)
log.Fatalln(http.ListenAndServe(addr, engine))
} }
/************************************/ /************************************/