Rewrote cache implemenation.

This commit is contained in:
mikestefanello 2024-06-18 20:25:01 -04:00
parent ab55705b9f
commit 3f46617f80
7 changed files with 285 additions and 148 deletions

View file

@ -59,13 +59,7 @@ func LogRequest() echo.MiddlewareFunc {
"latency", stop.Sub(start).String(),
)
msg := fmt.Sprintf("%s %s", req.Method, func() string {
p := req.URL.Path
if p == "" {
p = "/"
}
return p
}())
msg := fmt.Sprintf("%s %s", req.Method, req.URL.RequestURI())
if res.Status >= 500 {
sub.Error(msg)