mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Log when WatchdogBase.Running is changed
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user