Skip to content

Commit

Permalink
Add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko committed Aug 21, 2024
1 parent 900e15f commit 4f50805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion balancer/mist/mist_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func (b *MistBalancer) MistUtilLoadBalance(ctx context.Context, stream, lat, lon
return "", err
}
// Special case: rewrite our local node to our public node url
if str == b.config.MistHost {
if str == "127.0.0.1" {
str = b.config.NodeName
}
return str, nil
Expand Down
2 changes: 1 addition & 1 deletion handlers/geolocation/geolocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (c *GeolocationHandlersCollection) RedirectHandler() httprouter.Handle {

rPath := fmt.Sprintf(pathTmpl, fullPlaybackID)
rURL := fmt.Sprintf("%s://%s%s?%s", protocol(r), bestNode, rPath, r.URL.RawQuery)
glog.Warning("### rURL=%s, rPath", rURL, rPath)
glog.Warningf("### rURL=%s, rPath=%s", rURL, rPath)
rURL, err = c.resolveNodeURL(rURL)
if err != nil {
glog.Errorf("failed to resolve node URL playbackID=%s err=%s", playbackID, err)
Expand Down

0 comments on commit 4f50805

Please sign in to comment.