Log when WatchdogBase.Running is changed

This commit is contained in:
Jordan Brown
2020-05-13 13:05:39 -04:00
parent 1f3a478525
commit b23d9e9beb
@@ -28,7 +28,15 @@ namespace Tgstation.Server.Host.Components.Watchdog
abstract class WatchdogBase : IWatchdog, ICustomCommandHandler, IRestartHandler
{
/// <inheritdoc />
public bool Running { get; protected set; }
public bool Running
{
get => running;
set
{
running = value;
Logger.LogTrace("Running set to {0}", running);
}
}
/// <inheritdoc />
public abstract bool AlphaIsActive { get; }
@@ -140,6 +148,11 @@ namespace Tgstation.Server.Host.Components.Watchdog
/// </summary>
bool releaseServers;
/// <summary>
/// Backing field for <see cref="Running"/>.
/// </summary>
bool running;
/// <summary>
/// Initializes a new instance of the <see cref="WatchdogBase"/> <see langword="class"/>.
/// </summary>