mirror of
https://github.com/docker/docs.git
synced 2026-04-01 00:38:52 +07:00
replace print by log
This commit is contained in:
@@ -178,7 +178,7 @@ func redirectContainer(c *HttpApiContext, w http.ResponseWriter, r *http.Request
|
||||
newURL, _ := url.Parse(container.Node().Addr)
|
||||
newURL.RawQuery = r.URL.RawQuery
|
||||
newURL.Path = re.ReplaceAllLiteralString(r.URL.Path, "")
|
||||
fmt.Println("REDIR ->", newURL.String())
|
||||
log.Debugf("REDIRECT TO %s", newURL.String())
|
||||
http.Redirect(w, r, newURL.String(), http.StatusSeeOther)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user