From 06135e8d50e1a77a84f6676c43bf767d9d2e9688 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Tue, 1 Jul 2025 10:08:13 +0200 Subject: [PATCH] chore: clarify log output related to saveLoadout --- src/services/saveLoadoutService.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/services/saveLoadoutService.ts b/src/services/saveLoadoutService.ts index ff42ad82..5b35d079 100644 --- a/src/services/saveLoadoutService.ts +++ b/src/services/saveLoadoutService.ts @@ -167,8 +167,13 @@ export const handleInventoryItemConfigChange = async ( inventory.LotusCustomization = equipmentChanges.LotusCustomization; break; } + case "ValidNewLoadoutId": { + logger.debug(`ignoring ValidNewLoadoutId (${equipmentChanges.ValidNewLoadoutId})`); + // seems always equal to the id of loadout config NORMAL[0], likely has no purpose and we're free to ignore it + break; + } default: { - if (equipmentKeys.includes(equipmentName as TEquipmentKey) && equipmentName != "ValidNewLoadoutId") { + if (equipmentKeys.includes(equipmentName as TEquipmentKey)) { logger.debug(`general Item config saved of type ${equipmentName}`, { config: equipment }); @@ -216,7 +221,7 @@ export const handleInventoryItemConfigChange = async ( } break; } else { - logger.warn(`loadout category not implemented, changes may be lost: ${equipmentName}`, { + logger.error(`loadout category not implemented, changes will be lost: ${equipmentName}`, { config: equipment }); } -- 2.47.2