replace print by log

This commit is contained in:
Victor Vieux 2014-11-13 19:41:16 +00:00
parent 39b83819aa
commit 498543bfd2
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}