summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Logging
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-18 12:43:31 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-09-18 12:43:31 -0400
commit6ac5ca090da088e96b0c6508866cebe7eedc439d (patch)
tree949166e5875c1969491fecb9d2c4d34afab936f8 /src/SMAPI/Framework/Logging
parent8a117744608dfff970855defbffb1f40466ab755 (diff)
downloadSMAPI-6ac5ca090da088e96b0c6508866cebe7eedc439d.tar.gz
SMAPI-6ac5ca090da088e96b0c6508866cebe7eedc439d.tar.bz2
SMAPI-6ac5ca090da088e96b0c6508866cebe7eedc439d.zip
simplify exception logs
Diffstat (limited to 'src/SMAPI/Framework/Logging')
-rw-r--r--src/SMAPI/Framework/Logging/LogManager.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Logging/LogManager.cs b/src/SMAPI/Framework/Logging/LogManager.cs
index 6fe44d98..f2876146 100644
--- a/src/SMAPI/Framework/Logging/LogManager.cs
+++ b/src/SMAPI/Framework/Logging/LogManager.cs
@@ -406,6 +406,10 @@ namespace StardewModdingAPI.Framework.Logging
}
}
+ // simplify exception messages
+ if (level == LogLevel.Error)
+ message = ExceptionHelper.SimplifyExtensionMessage(message);
+
// forward to monitor
gameMonitor.Log(message, level);
}