Lower log level for following redirects. (#3972)

This commit is contained in:
Jacob Hoffman-Andrews 2018-12-06 16:47:40 -08:00 committed by Roland Bracewell Shoemaker
parent 77f6b1e396
commit 1ad8c70c36
1 changed files with 2 additions and 2 deletions

View File

@ -406,7 +406,7 @@ func (va *ValidationAuthorityImpl) processHTTPValidation(
records := []core.ValidationRecord{baseRecord}
numRedirects := 0
processRedirect := func(req *http.Request, via []*http.Request) error {
va.log.Infof("processing a HTTP redirect from the server to %q\n", req.URL.String())
va.log.Debugf("processing a HTTP redirect from the server to %q\n", req.URL.String())
// Only process up to maxRedirect redirects
if numRedirects > maxRedirect {
return berrors.ConnectionFailureError("Too many redirects")
@ -437,7 +437,7 @@ func (va *ValidationAuthorityImpl) processHTTPValidation(
if err != nil {
return err
}
va.log.Infof("following redirect to host %q url %q\n", req.Host, req.URL.String())
va.log.Debugf("following redirect to host %q url %q\n", req.Host, req.URL.String())
return nil
}