1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

chore: enables debug (#3418)

This commit is contained in:
Amir Raminfar
2024-11-25 08:10:34 -08:00
committed by GitHub
parent c36cf72506
commit 036bee5621

View File

@@ -11,6 +11,7 @@ import (
docker_support "github.com/amir20/dozzle/internal/support/docker"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"github.com/rs/zerolog/log"
)
@@ -131,7 +132,9 @@ func createRouter(h *handler) *chi.Mux {
})
}
// r.Mount("/debug", middleware.Profiler())
if log.Debug().Enabled() {
r.Mount("/debug", middleware.Profiler())
}
return r
}