This commit is contained in:
tylitianrui 2021-05-25 10:28:36 +08:00
parent 59171e3425
commit aaa9ccde07

View File

@ -31,9 +31,9 @@ func debugPrintRoute(httpMethod, absolutePath string, handlers HandlersChain) {
handlerName := nameOfFunction(handlers.Last()) handlerName := nameOfFunction(handlers.Last())
if DebugPrintRouteFunc == nil { if DebugPrintRouteFunc == nil {
debugPrint("%-6s %-25s --> %s (%d handlers)\n", httpMethod, absolutePath, handlerName, nuHandlers) debugPrint("%-6s %-25s --> %s (%d handlers)\n", httpMethod, absolutePath, handlerName, nuHandlers)
} else { return
DebugPrintRouteFunc(httpMethod, absolutePath, handlerName, nuHandlers)
} }
DebugPrintRouteFunc(httpMethod, absolutePath, handlerName, nuHandlers)
} }
func debugPrintLoadTemplate(tmpl *template.Template) { func debugPrintLoadTemplate(tmpl *template.Template) {
if !IsDebugging() { if !IsDebugging() {