From 1f743f10afce6daa6f8aad4517b22fcff4a2f133 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Mon, 27 May 2024 18:33:34 +0100 Subject: [PATCH] Fix missing debug trace --- patches/server/Wait-for-Async-Tasks-during-shutdown.patch | 1 + 1 file changed, 1 insertion(+) diff --git a/patches/server/Wait-for-Async-Tasks-during-shutdown.patch b/patches/server/Wait-for-Async-Tasks-during-shutdown.patch index d68256c4a5..f5869bce22 100644 --- a/patches/server/Wait-for-Async-Tasks-during-shutdown.patch +++ b/patches/server/Wait-for-Async-Tasks-during-shutdown.patch @@ -50,6 +50,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + plugin.getPluginMeta().getDisplayName(), + "This plugin is not properly shutting down its async tasks when it is being shut down. This task may throw errors during the final shutdown logs and might not complete before process dies." + )); ++ if (console.isDebugging()) io.papermc.paper.util.TraceUtil.dumpTraceForThread(worker.getThread(), "still running"); // Paper - Debugging + } + } + // Paper end - Wait for Async Tasks during shutdown