1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 11:57:02 +00:00
Former-commit-id: 2b5ae1857a5815977507b6b8fc72dd0040d470ca
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-04-29 21:16:43 +03:00
parent ac08f53ba0
commit 714e84b597
7 changed files with 40 additions and 16 deletions

View File

@@ -11,7 +11,6 @@ import (
macroHandler "github.com/kataras/iris/v12/macro/handler"
"github.com/kataras/golog"
"github.com/kataras/pio"
)
// RequestHandler the middle man between acquiring a context and releasing it.
@@ -182,6 +181,8 @@ func (h *routerHandler) Build(provider RoutesProvider) error {
defer golog.SetTimeFormat(bckpTimeFormat)
golog.SetTimeFormat("")
newLine := []byte("\n")
for _, method := range append(AllMethods, MethodNone) {
methodRoutes := collect(method)
if len(methodRoutes) == 0 {
@@ -192,7 +193,7 @@ func (h *routerHandler) Build(provider RoutesProvider) error {
r.Trace(golog.Default.Printer)
}
golog.Default.Printer.Write(pio.NewLine)
golog.Default.Printer.Write(newLine)
}
}