From d07527404c9da5d5df20c2eb1ac0c7f81959a4e0 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sat, 4 Oct 2025 00:23:04 +1300 Subject: [PATCH] Suppress `SharedMapSystem` info logs in tests (#40592) * Supress informational `SharedMapSystem` logs in tests * Why is the client like this --- Content.IntegrationTests/Pair/TestPair.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) {