Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Minor

Rich Turner6f28d377abb5
diff --git a/container/src/main/java/org/openremote/container/web/WebServiceExceptions.java b/container/src/main/java/org/openremote/container/web/WebServiceExceptions.java
index 1caa92323..8f8eee1a4 100644
--- a/container/src/main/java/org/openremote/container/web/WebServiceExceptions.java
+++ b/container/src/main/java/org/openremote/container/web/WebServiceExceptions.java
@@ -229,7 +229,7 @@ public class WebServiceExceptions {
}
if (LOG.isLoggable(Level.FINE)) {
- LOG.log(Level.FINE, "Web service exception in '" + origin + "' for '" + info + "'", throwable);
+ LOG.log(Level.FINE, "Web service exception in '" + origin + "' for '" + info + "'" + " type = " + throwable.getClass().getSimpleName() + ", message=" + throwable.getMessage(), throwable);
} else {
LOG.log(Level.INFO, "Web service exception in '" + origin + "' for '" + info + "', root cause: " + getRootCause(throwable));
}
diff --git a/ui/component/core/src/console.ts b/ui/component/core/src/console.ts
index a3f10ce2b..cd591d915 100644
--- a/ui/component/core/src/console.ts
+++ b/ui/component/core/src/console.ts
@@ -307,6 +307,19 @@ export class Console {
console.debug("Console: updating registration");
try {
+ // Ensure console name, platform, version and providers are not null
+ if (!this._registration.name) {
+ this._registration.name = "Console";
+ }
+ if (!this._registration.platform) {
+ this._registration.platform = "N/A";
+ }
+ if (!this._registration.version) {
+ this._registration.version = "N/A"
+ }
+ if (!this._registration.providers) {
+ this._registration.providers = {};
+ }
manager.rest.api.ConsoleResource.register(this._registration).then((response: AxiosResponse<ConsoleRegistration>) => {
if (response.status !== 200) {
throw new Error("Failed to register console");