From 498543bfd2d820f36e5cc47133eef96212ea2ef7 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Thu, 13 Nov 2014 19:41:16 +0000 Subject: [PATCH] replace print by log --- api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.go b/api/api.go index 24f0f57967..4cac0c9d56 100644 --- a/api/api.go +++ b/api/api.go @@ -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) } }