From 82269e8a953c61fef82fbaae0f1affdecbbfb212 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Tue, 25 Oct 2022 11:24:19 -0800 Subject: [PATCH] clean logs --- backend/app/api/routes.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/app/api/routes.go b/backend/app/api/routes.go index 67882ed..f5d887a 100644 --- a/backend/app/api/routes.go +++ b/backend/app/api/routes.go @@ -15,7 +15,6 @@ import ( v1 "github.com/hay-kot/homebox/backend/app/api/handlers/v1" _ "github.com/hay-kot/homebox/backend/app/api/static/docs" "github.com/hay-kot/homebox/backend/internal/repo" - "github.com/rs/zerolog/log" httpSwagger "github.com/swaggo/http-swagger" // http-swagger middleware ) @@ -167,14 +166,11 @@ func notFoundHandler() http.HandlerFunc { } return func(w http.ResponseWriter, r *http.Request) { - err := tryRead(public, "public", r.URL.Path, w) + err := tryRead(public, "static/public", r.URL.Path, w) if err == nil { return } - log.Debug(). - Str("path", r.URL.Path). - Msg("served from embed not found - serving index.html") - err = tryRead(public, "public", "index.html", w) + err = tryRead(public, "static/public", "index.html", w) if err != nil { panic(err) }