From 2c798d600607ea5e9dbf699f3bb17e861c4dd9a0 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sat, 23 Jan 2021 12:00:51 +0100 Subject: [PATCH] added debugging information about the demains --- http.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/http.go b/http.go index 2328150..26f8e67 100644 --- a/http.go +++ b/http.go @@ -56,13 +56,16 @@ func (s *Server) StartServer() { // DomainRouter redirects the requests to the routers of the domains func (s *Server) DomainRouter(c *gin.Context) { domain := c.Request.URL.Host + entry := log.Trace().Str("domain", domain) if router, found := s.mrouter[domain]; found { + entry.Msg("Found domain") router.NoMethod(s.NotFoundHandler) router.NoRoute(s.NotFoundHandler) c.Set("domain", domain) router.HandleContext(c) return } + entry.Interface("domains", s.mrouter).Msg("domain not found") s.NotFoundHandler(c) }