From dd0f05b1f1b3e36d4d7ee17f695082d4c38f6247 Mon Sep 17 00:00:00 2001 From: astaxie Date: Sun, 11 Sep 2016 22:00:14 +0800 Subject: [PATCH] fix the method color --- router.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/router.go b/router.go index 2adecbf0..248c2a48 100644 --- a/router.go +++ b/router.go @@ -838,16 +838,16 @@ Admin: if findRouter { if routerInfo != nil { - devInfo = fmt.Sprintf("|%s %3d %s|%13s|%8s|%s %s %-7s %-3s r:%s", statusColor, statusCode, - resetColor, timeDur.String(), "match", methodColor, resetColor, r.Method, r.URL.Path, + devInfo = fmt.Sprintf("|%s %3d %s|%13s|%8s|%s %-7s %s %-3s r:%s", statusColor, statusCode, + resetColor, timeDur.String(), "match", methodColor, r.Method, resetColor, r.URL.Path, routerInfo.pattern) } else { - devInfo = fmt.Sprintf("|%s %3d %s|%13s|%8s|%s %s %-7s %-3s", statusColor, statusCode, resetColor, - timeDur.String(), "match", methodColor, resetColor, r.Method, r.URL.Path) + devInfo = fmt.Sprintf("|%s %3d %s|%13s|%8s|%s %-7s %s %-3s", statusColor, statusCode, resetColor, + timeDur.String(), "match", methodColor, r.Method, resetColor, r.URL.Path) } } else { - devInfo = fmt.Sprintf("|%s %3d %s|%13s|%8s|%s %s %-7s %-3s", statusColor, statusCode, resetColor, - timeDur.String(), "nomatch", methodColor, resetColor, r.Method, r.URL.Path) + devInfo = fmt.Sprintf("|%s %3d %s|%13s|%8s|%s %-7s %s %-3s", statusColor, statusCode, resetColor, + timeDur.String(), "nomatch", methodColor, r.Method, resetColor, r.URL.Path) } if iswin { logs.W32Debug(devInfo)