From 1c18a0176a1a5e62688ee471ecaad7c1dd923541 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Gouillart Date: Thu, 5 Dec 2024 20:56:23 +0100 Subject: [PATCH] Added engine log in standalone mode --- .../src/main/java/com/enioka/jqm/engine/JqmEngine.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jqm-all/jqm-engine/src/main/java/com/enioka/jqm/engine/JqmEngine.java b/jqm-all/jqm-engine/src/main/java/com/enioka/jqm/engine/JqmEngine.java index 0dafa6c1..5420f23b 100644 --- a/jqm-all/jqm-engine/src/main/java/com/enioka/jqm/engine/JqmEngine.java +++ b/jqm-all/jqm-engine/src/main/java/com/enioka/jqm/engine/JqmEngine.java @@ -251,7 +251,9 @@ public void start(String nodeName, JqmEngineHandler h) if (standaloneMode) { final var localIp = StandaloneHelpers.getLocalIpAddress(); - cnx.runRawUpdate("ALTER SEQUENCE JQM_PK RESTART WITH " + idSequenceBaseFromIp(localIp)); + var idStart = idSequenceBaseFromIp(localIp); + jqmlogger.info("Running in standalone (no shared database) mode with local seed {} - starting IDs at {}", localIp); + cnx.runRawUpdate("ALTER SEQUENCE JQM_PK RESTART WITH " + idStart); } }