diff --git a/ginext/engine.go b/ginext/engine.go index ac33c30..59c5763 100644 --- a/ginext/engine.go +++ b/ginext/engine.go @@ -68,6 +68,9 @@ func NewEngine(allowCors bool, ginDebug bool, timeout time.Duration) *GinWrapper } func (w *GinWrapper) ListenAndServeHTTP(addr string, postInit func(port string)) (chan error, *http.Server) { + + w.DebugPrintRoutes() + httpserver := &http.Server{ Addr: addr, Handler: w.engine, @@ -92,7 +95,7 @@ func (w *GinWrapper) ListenAndServeHTTP(addr string, postInit func(port string)) log.Info().Str("address", httpserver.Addr).Msg("HTTP-Server started on http://localhost:" + port) if postInit != nil { - postInit(port) + postInit(port) // the net.Listener a few lines above is at this point actually already buffering requests } errChan <- httpserver.Serve(ln) diff --git a/goextVersion.go b/goextVersion.go index bbc835e..a284ca9 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.202" +const GoextVersion = "0.0.203" -const GoextVersionTimestamp = "2023-07-24T18:34:56+0200" +const GoextVersionTimestamp = "2023-07-24T18:38:04+0200"