forked from OpenWF/SpaceNinjaServer
		
	chore: clarify log output related to saveLoadout (#2379)
Reviewed-on: OpenWF/SpaceNinjaServer#2379 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									1d60745f18
								
							
						
					
					
						commit
						363028c9ce
					
				@ -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
 | 
			
		||||
                    });
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user