diff options
Diffstat (limited to 'pkg/ext')
-rw-r--r-- | pkg/ext/router.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/ext/router.go b/pkg/ext/router.go index 956254d..e12a40c 100644 --- a/pkg/ext/router.go +++ b/pkg/ext/router.go @@ -3,6 +3,7 @@ package ext import ( "errors" "fmt" + "log/slog" "net/http" "git.gabrielgio.me/cerrado/pkg/service" @@ -38,6 +39,7 @@ func wrapError(next ErrorRequestHandler) http.HandlerFunc { if errors.Is(err, service.ErrRepositoryNotFound) { NotFound(w, r) } else { + slog.Error("Internal Server Error", "error", err) InternalServerError(r, w, err) } } |