Skip to content

Commit

Permalink
chore: enables debug
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 committed Nov 23, 2024
1 parent 3f3346d commit c96f08d
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 c96f08d

Please sign in to comment.