Skip to content

armgit / core

Public Imported from GitHub
0

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

Add requesting thread name to GlobalLock

Rich Turner93b6b44697d7
diff --git a/container/src/main/java/org/openremote/container/concurrent/GlobalLock.java b/container/src/main/java/org/openremote/container/concurrent/GlobalLock.java
index c040bae82..18cf73e90 100644
--- a/container/src/main/java/org/openremote/container/concurrent/GlobalLock.java
+++ b/container/src/main/java/org/openremote/container/concurrent/GlobalLock.java
@@ -115,7 +115,7 @@ public class GlobalLock {
}
} else {
throw new IllegalStateException(
- "Could not acquire lock owned by " + lock.owner() + " after waiting " + getLockTimeoutMillis() + "ms: " + info
+ "Could not acquire lock owned by " + lock.owner() + " after waiting " + getLockTimeoutMillis() + "ms: " + Thread.currentThread().getName() + " executing " + info
);
}
} catch (InterruptedException ex) {