Skip to content

Commit

Permalink
remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
BK1031 committed Aug 28, 2024
1 parent defb3d7 commit 94f9ce7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions service/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ func CreateRoute(route model.Route) error {
route.CreatedAt = time.Now()

overlapRoutes := GetOverlappingRoutes(route)
fmt.Printf("overlapRoutes: %+v\n", overlapRoutes)
if len(overlapRoutes) == 1 && overlapRoutes[0].ServiceName == route.ServiceName {
utils.SugarLogger.Debugf("stacking existing route %s for service %s", route.Route, route.ServiceName)
route.Method = StackMethods(route.Method, overlapRoutes[0].Method)
Expand Down Expand Up @@ -164,7 +163,6 @@ func GetOverlappingRoutes(route model.Route) []model.Route {
route.ServiceName = utils.NormalizeName(route.ServiceName)
overlapRoutes := make([]model.Route, 0)
existingRoutes := GetRoutesByRoute(route.Route)
fmt.Printf("existingRoutes: %+v\n", existingRoutes)

for _, r := range existingRoutes {
for _, m := range strings.Split(r.Method, ",") {
Expand All @@ -174,7 +172,6 @@ func GetOverlappingRoutes(route model.Route) []model.Route {
}
}
}
fmt.Printf("methodMap: %+v\n", methodMap)
for _, m := range strings.Split(route.Method, ",") {
if m == "*" {
return existingRoutes
Expand Down

0 comments on commit 94f9ce7

Please sign in to comment.