mirror of https://github.com/docker/docs.git
replace print by log
This commit is contained in:
parent
39b83819aa
commit
498543bfd2
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue