Skip to content

Commit

Permalink
chore: enables debug (#3418)
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 authored Nov 25, 2024
1 parent c36cf72 commit 036bee5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/web/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 036bee5

Please sign in to comment.