From 876131a864c09988dfb9ad7a99e636d9fb9618c6 Mon Sep 17 00:00:00 2001 From: IllianiCBT Date: Wed, 25 Sep 2024 21:45:35 -0500 Subject: [PATCH] Change Logger Level from Error to Warn for SPA Loader Adjusted the logging level from error to warn when restoring an SPA fails. This avoids an error dialog appearing whenever a character with a no-longer existing SPA is loaded. Instead, it will report to the log and advance to the next SPA. --- MekHQ/src/mekhq/campaign/personnel/Person.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MekHQ/src/mekhq/campaign/personnel/Person.java b/MekHQ/src/mekhq/campaign/personnel/Person.java index acf05c9aa1..fd90f6e8e5 100644 --- a/MekHQ/src/mekhq/campaign/personnel/Person.java +++ b/MekHQ/src/mekhq/campaign/personnel/Person.java @@ -2602,7 +2602,7 @@ public static Person generateInstanceFromXML(Node wn, Campaign c, Version versio try { retVal.getOptions().getOption(advName).setValue(value); } catch (Exception e) { - logger.error("Error restoring advantage: {}", adv); + logger.warn("Error restoring advantage: {}", adv); } } }