diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-09-18 12:43:31 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-09-18 12:43:31 -0400 |
commit | 6ac5ca090da088e96b0c6508866cebe7eedc439d (patch) | |
tree | 949166e5875c1969491fecb9d2c4d34afab936f8 /src/SMAPI/Framework/Logging | |
parent | 8a117744608dfff970855defbffb1f40466ab755 (diff) | |
download | SMAPI-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.cs | 4 |
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); } |