diff --git a/build/Version.props b/build/Version.props index 6a73d95358..5018e6edbd 100644 --- a/build/Version.props +++ b/build/Version.props @@ -2,7 +2,7 @@ - 4.2.6 + 4.2.7 6.4.1 7.0.1 5.2.1 diff --git a/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs b/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs index 543800cc5d..13c96f350a 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/BasicWatchdog.cs @@ -87,8 +87,6 @@ namespace Tgstation.Server.Host.Components.Watchdog if (Server == null) return null; - Logger.LogDebug("Server compile job ID is {0}", Server.Dmb.CompileJob.Id); - monitorState.ActiveServer = Server; return new Dictionary diff --git a/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs b/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs index 5d9311e8de..74b3e06371 100644 --- a/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs +++ b/src/Tgstation.Server.Host/Components/Watchdog/WatchdogBase.cs @@ -664,8 +664,7 @@ namespace Tgstation.Server.Host.Components.Watchdog } } - // full reboot required - Logger.LogDebug("Next monitor action is to {0}", monitorState.NextAction); + Logger.LogTrace("Next monitor action is to {0}", monitorState.NextAction); if (monitorState.NextAction == MonitorAction.Restart) monitorState = await MonitorRestart(cancellationToken).ConfigureAwait(false); } diff --git a/src/Tgstation.Server.Host/Core/Application.cs b/src/Tgstation.Server.Host/Core/Application.cs index 51bb634cb5..7117a95628 100644 --- a/src/Tgstation.Server.Host/Core/Application.cs +++ b/src/Tgstation.Server.Host/Core/Application.cs @@ -137,12 +137,14 @@ namespace Tgstation.Server.Host.Core null); logPath = IOManager.ConcatPath(logPath, "tgs-{Date}.log"); - var rollingFileConfig = sinkConfig.RollingFile( + var rollingFileConfig = sinkConfig.File( formatter, logPath, logEventLevel ?? LogEventLevel.Verbose, 50 * 1024 * 1024, // 50MB max size - flushToDiskInterval: TimeSpan.FromSeconds(2)); + flushToDiskInterval: TimeSpan.FromSeconds(2), + rollingInterval: RollingInterval.Day, + rollOnFileSizeLimit: true); }); // configure bearer token validation diff --git a/src/Tgstation.Server.Host/Tgstation.Server.Host.csproj b/src/Tgstation.Server.Host/Tgstation.Server.Host.csproj index 5b9e627a09..4e7ce431c4 100644 --- a/src/Tgstation.Server.Host/Tgstation.Server.Host.csproj +++ b/src/Tgstation.Server.Host/Tgstation.Server.Host.csproj @@ -73,7 +73,7 @@ - + all runtime; build; native; contentfiles; analyzers