lwm2m: fix bugs in PR commits

This commit is contained in:
nickAS21 2022-02-08 21:38:09 +02:00
parent 29a551d048
commit ecc9f8fe38
3 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ public class LwM2MTransportBootstrapService {
server.destroy();
log.info("LwM2M transport bootstrap server stopped!");
} catch (Exception e) {
log.error("", e);
log.error("Failed to gracefully stop the LwM2M transport bootstrap server!", e);
}
}
@ -122,7 +122,7 @@ public class LwM2MTransportBootstrapService {
} else {
/* by default trust all */
builder.setTrustedCertificates(new X509Certificate[0]);
log.info("Unable to load X509 files for BootStrapServer");
log.info("Unable to load X509 files for BootStrap Server");
dtlsConfig.setAsList(DtlsConfig.DTLS_CIPHER_SUITES, PSK_CIPHER_SUITES);
}
}

View File

@ -178,7 +178,7 @@ public class LwM2MBootstrapConfigStoreTaskProvider implements BootstrapTaskProvi
serverInstances.put(shortId, instance.getId());
});
} catch (Exception e) {
log.error("", e);
log.error("Failed find Server Instance Id. ", e);
}
if (this.securityInstances != null && this.securityInstances.size() > 0 && this.serverInstances != null && this.serverInstances.size() > 0) {
this.findBootstrapServerId();

View File

@ -104,7 +104,7 @@ public class DefaultLwM2mTransportService implements LwM2MTransportService {
server.destroy();
log.info("LwM2M transport server stopped!");
} catch (Exception e) {
log.error("", e);
log.error("Failed to gracefully stop the LwM2M transport server!", e);
}
}