diff --git a/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/bootstrap/secure/TbLwM2MDtlsBootstrapCertificateVerifier.java b/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/bootstrap/secure/TbLwM2MDtlsBootstrapCertificateVerifier.java index b0fbb91a97..eeec94f815 100644 --- a/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/bootstrap/secure/TbLwM2MDtlsBootstrapCertificateVerifier.java +++ b/common/transport/lwm2m/src/main/java/org/thingsboard/server/transport/lwm2m/bootstrap/secure/TbLwM2MDtlsBootstrapCertificateVerifier.java @@ -128,7 +128,7 @@ public class TbLwM2MDtlsBootstrapCertificateVerifier implements NewAdvancedCerti try { securityInfo = bsSecurityStore.getX509ByEndpoint(sha3Hash); } catch (LwM2MAuthException e) { - log.trace("Failed to find security info: {}", sha3Hash, e); + log.trace("Failed to find security info: [{}]", sha3Hash, e); } } ValidateDeviceCredentialsResponse msg = securityInfo != null ? securityInfo.getMsg() : null; @@ -139,7 +139,7 @@ public class TbLwM2MDtlsBootstrapCertificateVerifier implements NewAdvancedCerti } catch (CertificateEncodingException | CertificateExpiredException | CertificateNotYetValidException e) { - log.error(e.getMessage(), e); + log.trace("Failed to find security info: [{}]", cert.getSubjectX500Principal().getName(), e); } } if (!x509CredentialsFound) {