mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-17 05:42:09 +08:00
fix
This commit is contained in:
parent
59171e3425
commit
aaa9ccde07
4
debug.go
4
debug.go
@ -31,9 +31,9 @@ func debugPrintRoute(httpMethod, absolutePath string, handlers HandlersChain) {
|
||||
handlerName := nameOfFunction(handlers.Last())
|
||||
if DebugPrintRouteFunc == nil {
|
||||
debugPrint("%-6s %-25s --> %s (%d handlers)\n", httpMethod, absolutePath, handlerName, nuHandlers)
|
||||
} else {
|
||||
DebugPrintRouteFunc(httpMethod, absolutePath, handlerName, nuHandlers)
|
||||
return
|
||||
}
|
||||
DebugPrintRouteFunc(httpMethod, absolutePath, handlerName, nuHandlers)
|
||||
}
|
||||
func debugPrintLoadTemplate(tmpl *template.Template) {
|
||||
if !IsDebugging() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user