mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 20:22:20 +08:00
Added a basic log message for when starting up the app
This commit is contained in:
parent
df22fa4489
commit
eecd18d7bb
3
gin.go
3
gin.go
@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************/
|
/************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user