Remove backup logging in case of error.

AuditObject already does this for us.
This commit is contained in:
Jacob Hoffman-Andrews 2015-07-23 13:24:57 -07:00
parent 752080871d
commit d8ffa41d67
1 changed files with 0 additions and 7 deletions

View File

@ -9,7 +9,6 @@ import (
"bytes"
"crypto/x509"
"database/sql"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
@ -635,12 +634,6 @@ func (wfe *WebFrontEndImpl) logCsr(remoteAddr string, cr core.CertificateRequest
CsrBase64: cr.Bytes,
Registration: registration,
}
_, err := json.Marshal(csrLog)
if err != nil {
wfe.log.AuditErr(fmt.Errorf(
"Certificate request failed to serialize. RemoteAddr=%s CSR=%s",
remoteAddr, base64.StdEncoding.EncodeToString(cr.Bytes)))
}
wfe.log.AuditObject("Certificate request", csrLog)
}