summaryrefslogtreecommitdiffstats
path: root/java/jau/direct_bt/DBTManager.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-04-24 00:32:52 +0200
committerSven Gothel <[email protected]>2022-04-24 00:43:40 +0200
commitd69443252ce0514e7938e1777621519c2acbb1ee (patch)
treea72ab49aa89238cae679e1be1da51bc4e561ab6a /java/jau/direct_bt/DBTManager.java
parent716f2225d8457c6e7e556b71c5065b24d91547d6 (diff)
DBTManager.java: DEBUG: Br verbose about ShutdownHook
Note: Not called via unit testing, but installed.
Diffstat (limited to 'java/jau/direct_bt/DBTManager.java')
-rw-r--r--java/jau/direct_bt/DBTManager.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/jau/direct_bt/DBTManager.java b/java/jau/direct_bt/DBTManager.java
index 966ca96b..dfc332f9 100644
--- a/java/jau/direct_bt/DBTManager.java
+++ b/java/jau/direct_bt/DBTManager.java
@@ -56,6 +56,9 @@ public class DBTManager implements BTManager
public void run() {
DBTManager.shutdownImpl(true);
} }, "DBTManager_ShutdownHook" ) ) ;
+ if(DEBUG) {
+ System.err.println("DBTManager.init(): JVM ShutdownHook installed, on thread "+Thread.currentThread().getName());
+ }
return null;
} } ) ;
}
@@ -63,7 +66,7 @@ public class DBTManager implements BTManager
private static synchronized void shutdownImpl(final boolean _isJVMShuttingDown) {
isJVMShuttingDown = _isJVMShuttingDown;
if(DEBUG) {
- System.err.println("DBTManager.shutdown() START: JVM Shutdown "+isJVMShuttingDown+", on thread "+Thread.currentThread().getName());
+ System.err.println("DBTManager.shutdown() START: JVM ShutdownHook "+isJVMShuttingDown+", on thread "+Thread.currentThread().getName());
}
synchronized(userShutdownHooks) {
final int cshCount = userShutdownHooks.size();