Browse Source

Output message when gin-std server is ready (#7997)

I could use this to detect when the application has started before sending some request. Currently nothing is displayed at all.

@0uep is there a better way to do this?
Sébastien Ros 2 years ago
parent
commit
6070d42218
1 changed files with 1 additions and 0 deletions
  1. 1 0
      frameworks/Go/gin/gin-std/main.go

+ 1 - 0
frameworks/Go/gin/gin-std/main.go

@@ -153,6 +153,7 @@ func main() {
 	r.GET("/fortunes", fortunes)
 	r.GET("/update", update)
 	r.GET("/plaintext", plaintext)
+	log.Print("Listening and serving HTTP\n")
 	r.Run(":8080")
 }