forked from mirror/gin
Fixd newline problem with debugPrint in Run* functions
This commit is contained in:
parent
713068594c
commit
44f024a413
4
gin.go
4
gin.go
|
@ -127,7 +127,7 @@ func (engine *Engine) ServeHTTP(writer http.ResponseWriter, request *http.Reques
|
||||||
}
|
}
|
||||||
|
|
||||||
func (engine *Engine) Run(addr string) error {
|
func (engine *Engine) Run(addr string) error {
|
||||||
debugPrint("Listening and serving HTTP on %s", addr)
|
debugPrint("Listening and serving HTTP on %s\n", addr)
|
||||||
if err := http.ListenAndServe(addr, engine); err != nil {
|
if err := http.ListenAndServe(addr, engine); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -135,7 +135,7 @@ func (engine *Engine) Run(addr string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (engine *Engine) RunTLS(addr string, cert string, key string) error {
|
func (engine *Engine) RunTLS(addr string, cert string, key string) error {
|
||||||
debugPrint("Listening and serving HTTPS on %s", addr)
|
debugPrint("Listening and serving HTTPS on %s\n", addr)
|
||||||
if err := http.ListenAndServeTLS(addr, cert, key, engine); err != nil {
|
if err := http.ListenAndServeTLS(addr, cert, key, engine); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue