From b23d9e9beb1c4f633b25ae47f28a4abbb35d5fc5 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 13 May 2020 13:05:39 -0400 Subject: [PATCH] Log when WatchdogBase.Running is changed --- .../Components/Watchdog/WatchdogBase.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs b/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs index e774153eaa..e0f06ab93a 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs @@ -28,7 +28,15 @@ namespace Tgstation.Server.Host.Components.Watchdog abstract class WatchdogBase : IWatchdog, ICustomCommandHandler, IRestartHandler { /// - public bool Running { get; protected set; } + public bool Running + { + get => running; + set + { + running = value; + Logger.LogTrace("Running set to {0}", running); + } + } /// public abstract bool AlphaIsActive { get; } @@ -140,6 +148,11 @@ namespace Tgstation.Server.Host.Components.Watchdog /// bool releaseServers; + /// + /// Backing field for . + /// + bool running; + /// /// Initializes a new instance of the . ///