diff --git a/Libraries/SPTarkov.Server.Core/Services/LocationLifecycleService.cs b/Libraries/SPTarkov.Server.Core/Services/LocationLifecycleService.cs index 6bd248cc..0d5fc5c6 100644 --- a/Libraries/SPTarkov.Server.Core/Services/LocationLifecycleService.cs +++ b/Libraries/SPTarkov.Server.Core/Services/LocationLifecycleService.cs @@ -159,7 +159,12 @@ public class LocationLifecycleService( { return; } - logger.Debug("Wiping player inventory on raid start to prevent alt-f4"); + + if (logger.IsLogEnabled(LogLevel.Debug)) + { + logger.Debug("Wiping player inventory on raid start to prevent alt-f4"); + } + inRaidHelper.DeleteInventory(pmcData, sessionId); }