Skip to content

Commit

Permalink
Log CSR failures with exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter committed Dec 17, 2024
1 parent 648fdec commit 705b0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeman/x509.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def process_csr_request(request: Request, csr: x509.CertificateSigningRequest, n
try:
ca_response = request.app.ca_client.sign_csr(csr, name)
except Exception as exc:
logger.error("Failed to process CSR for %s", name)
logger.error("Failed to process CSR for %s: %s", name, str(exc), exc_info=exc)
raise HTTPException(status.HTTP_500_INTERNAL_SERVER_ERROR, detail="Error issuing certificate") from exc

x509_certificate_pem = "".join(
Expand Down

0 comments on commit 705b0ce

Please sign in to comment.