From 6c9b062f0394913c513de1893ccf5f7fd35cca78 Mon Sep 17 00:00:00 2001 From: Alejandro Revilla Date: Sat, 27 Jan 2024 20:21:19 -0300 Subject: [PATCH] only display join info on shutdownHookDelay>0 --- jpos/src/main/java/org/jpos/q2/Q2.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jpos/src/main/java/org/jpos/q2/Q2.java b/jpos/src/main/java/org/jpos/q2/Q2.java index 14fc7b937e..35bc7ba4b6 100644 --- a/jpos/src/main/java/org/jpos/q2/Q2.java +++ b/jpos/src/main/java/org/jpos/q2/Q2.java @@ -436,7 +436,8 @@ public void run () { shuttingDown = true; shutdown.countDown(); if (q2Thread != null) { - log.info ("shutting down (join/" + SHUTDOWN_TIMEOUT + ")"); + if (shutdownHookDelay > 0) + log.info ("shutting down (join/" + SHUTDOWN_TIMEOUT + ")"); try { q2Thread.join (SHUTDOWN_TIMEOUT); } catch (InterruptedException ignored) {