From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Fri, 3 Oct 2025 11:23:04 +0000 (+1300) Subject: Suppress `SharedMapSystem` info logs in tests (#40592) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=d07527404c9da5d5df20c2eb1ac0c7f81959a4e0;p=space-station-14.git Suppress `SharedMapSystem` info logs in tests (#40592) * Supress informational `SharedMapSystem` logs in tests * Why is the client like this --- diff --git a/Content.IntegrationTests/Pair/TestPair.cs b/Content.IntegrationTests/Pair/TestPair.cs index 947840d5ce..81f99146f7 100644 --- a/Content.IntegrationTests/Pair/TestPair.cs +++ b/Content.IntegrationTests/Pair/TestPair.cs @@ -27,6 +27,16 @@ public sealed partial class TestPair : RobustIntegrationTest.TestPair protected override async Task Initialize() { + await base.Initialize(); + + // Prevent info log spam in some tests (particularly SpawnAndDeleteAllEntitiesOnDifferentMaps) + Server.System().Log.Level = LogLevel.Warning; + Client.EntMan.EntitySysManager.SystemLoaded += (_, e) => + { + if (e.System is SharedMapSystem map) + map.Log.Level = LogLevel.Warning; + }; + var settings = (PoolSettings)Settings; if (!settings.DummyTicker) {