From 5746a0a64aa497e20001d9f9ca383fcc1c0f7701 Mon Sep 17 00:00:00 2001 From: WarmUpTill <19472752+WarmUpTill@users.noreply.github.com> Date: Fri, 30 Oct 2026 20:05:40 +0100 Subject: [PATCH] Add logging for shutdown macro handling --- lib/advanced-scene-switcher.cpp | 1 + lib/macro/macro.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/advanced-scene-switcher.cpp b/lib/advanced-scene-switcher.cpp index 7e07b4bd..f4709ead 100644 --- a/lib/advanced-scene-switcher.cpp +++ b/lib/advanced-scene-switcher.cpp @@ -598,6 +598,7 @@ static void handleShutdown() // Nothing may run once obs_shutdown() starts freeing sources and audio switcher->Stop(); if (ShutdownCheckIsNecessary()) { + blog(LOG_INFO, "running shutdown macros"); CheckMacros(); RunMacros(); WaitForAllMacros(); diff --git a/lib/macro/macro.cpp b/lib/macro/macro.cpp index 09fbcaa6..23bc5032 100644 --- a/lib/macro/macro.cpp +++ b/lib/macro/macro.cpp @@ -1439,9 +1439,11 @@ void SignalStopAllMacros() void WaitForAllMacros() { + blog(LOG_INFO, "waiting for all macros to stop"); for (const auto &m : GetAllMacros()) { m->Stop(); } + blog(LOG_INFO, "all macros stopped"); } void InvalidateMacroTempVarValues()