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(); server.destroy();
log.info("LwM2M transport bootstrap server stopped!"); log.info("LwM2M transport bootstrap server stopped!");
} catch (Exception e) { } catch (Exception e) {
log.error("", e); log.error("Failed to gracefully stop the LwM2M transport bootstrap server!", e);
} }
} }

View File

@ -178,7 +178,7 @@ public class LwM2MBootstrapConfigStoreTaskProvider implements BootstrapTaskProvi
serverInstances.put(shortId, instance.getId()); serverInstances.put(shortId, instance.getId());
}); });
} catch (Exception e) { } 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) { if (this.securityInstances != null && this.securityInstances.size() > 0 && this.serverInstances != null && this.serverInstances.size() > 0) {
this.findBootstrapServerId(); this.findBootstrapServerId();

View File

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