Skip to content

Commit

Permalink
Improve TR logging when a certificate from TO fails to decode
Browse files Browse the repository at this point in the history
This adds the name of the delivery service as well as the hostname of
the certificate it failed to decode.
  • Loading branch information
Rawlin Peters authored and dneuman64 committed Jun 25, 2018
1 parent 8fd3170 commit 1ed158a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public HandshakeData toHandshakeData(final CertificateData certificateData) {
x509Chain.toArray(new X509Certificate[x509Chain.size()]), privateKey);

} catch (Exception e) {
log.error("Failed to convert certificate data from traffic ops to handshake data! " + e.getClass().getSimpleName() + ": " + e.getMessage(), e);
log.error("Failed to convert certificate data (delivery service = " + certificateData.getDeliveryservice()
+ ", hostname = " + certificateData.getHostname() + ") from traffic ops to handshake data! "
+ e.getClass().getSimpleName() + ": " + e.getMessage(), e);
}
return null;
}
Expand Down

0 comments on commit 1ed158a

Please sign in to comment.