From e0ec14d340e1e07b913f4935f8aefb3e2651ca3c Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 5 Jan 2020 13:23:34 -0500 Subject: [PATCH] Log monitor activation reasons --- src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs | 3 +++ .../Components/Watchdog/ExperimentalWatchdog.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs b/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs index ea8ce97027..e000b8d85f 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs @@ -293,7 +293,10 @@ namespace Tgstation.Server.Host.Components.Watchdog || CheckActivationReason(ref activeServerReboot, MonitorActivationReason.ActiveServerRebooted) || CheckActivationReason(ref newDmbAvailable, MonitorActivationReason.NewDmbAvailable) || CheckActivationReason(ref activeLaunchParametersChanged, MonitorActivationReason.ActiveLaunchParametersUpdated)) + { + Logger.LogTrace("Monitor activation: {0}", activationReason); nextAction = await HandleMonitorWakeup(activationReason, cancellationToken).ConfigureAwait(false); + } else moreActivationsToProcess = false; } diff --git a/src/Tgstation.Server.Host/Components/Watchdog/ExperimentalWatchdog.cs b/src/Tgstation.Server.Host/Components/Watchdog/ExperimentalWatchdog.cs index 5159977540..41baa57d13 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/ExperimentalWatchdog.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/ExperimentalWatchdog.cs @@ -438,7 +438,10 @@ namespace Tgstation.Server.Host.Components.Watchdog || CheckActivationReason(ref inactiveServerStartup, MonitorActivationReason.InactiveServerStartupComplete) || CheckActivationReason(ref newDmbAvailable, MonitorActivationReason.NewDmbAvailable) || CheckActivationReason(ref activeLaunchParametersChanged, MonitorActivationReason.ActiveLaunchParametersUpdated)) + { + Logger.LogTrace("Monitor activation: {0}", activationReason); await HandlerMonitorWakeup(activationReason, monitorState, cancellationToken).ConfigureAwait(false); + } else moreActivationsToProcess = false; }