Skip to content

Commit

Permalink
chore: remove debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
acha-bill committed Apr 11, 2024
1 parent 4e702d0 commit 687b3f2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions pkg/api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,3 @@ func (s *Service) MountAPIs() {
web.FinalHandler(router),
)
}

func (s *Service) ListEndpoints() []string {
var routes []string
s.router.Walk(func(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error {
tpl, _ := route.GetPathTemplate()
routes = append(routes, tpl)
return nil
})
return routes
}
4 changes: 0 additions & 4 deletions pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1028,10 +1028,6 @@ func NewBee(

go func() {
logger.Info("starting api server", "address", apiListener.Addr())
routes := apiService.ListEndpoints()
for _, r := range routes {
logger.Debug("api endpoint registered", "path", r)
}
if err := apiServer.Serve(apiListener); err != nil && !errors.Is(err, http.ErrServerClosed) {
logger.Debug("api server failed to start", "error", err)
logger.Error(nil, "api server failed to start")
Expand Down

0 comments on commit 687b3f2

Please sign in to comment.