Skip to content

Commit cac4dcd

Browse files
author
gitlab
committed
Merge branch 'fix-log-reason' into 'master'
fix incorrect log message that failed to dump reason See merge request zstackio/zstack!2387
2 parents 614abc3 + 31a2321 commit cac4dcd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

portal/src/main/java/org/zstack/portal/managementnode/ManagementNodeManagerImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ private void installShutdownHook() {
238238
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
239239
String reason = System.getProperty(Platform.EXIT_REASON);
240240
if (reason != null) {
241-
logger.debug("JVM shutdown hook is called, start stopping management node");
242-
} else {
243241
logger.debug(String.format("JVM shutdown hook is called[reason: %s], start stopping management node", reason));
242+
} else {
243+
logger.debug("JVM shutdown hook is called, start stopping management node");
244244
}
245245

246246
stop();

0 commit comments

Comments
 (0)