summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModLoading
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-03-03 15:47:29 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-03-03 17:37:06 -0500
commit48833b5c306dfc88669e4cf4fc77640c426c519b (patch)
treefc4619f5174eb428a115b5d03c5fb4d977a8e664 /src/SMAPI/Framework/ModLoading
parentc7f2e53f209bce7fb06fd316c380bf6161689abd (diff)
downloadSMAPI-48833b5c306dfc88669e4cf4fc77640c426c519b.tar.gz
SMAPI-48833b5c306dfc88669e4cf4fc77640c426c519b.tar.bz2
SMAPI-48833b5c306dfc88669e4cf4fc77640c426c519b.zip
move technical compatibility details into TRACE log (#453)
Diffstat (limited to 'src/SMAPI/Framework/ModLoading')
-rw-r--r--src/SMAPI/Framework/ModLoading/AssemblyLoader.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs b/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs
index ccbd053e..7dcf94bf 100644
--- a/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs
+++ b/src/SMAPI/Framework/ModLoading/AssemblyLoader.cs
@@ -270,9 +270,10 @@ namespace StardewModdingAPI.Framework.ModLoading
break;
case InstructionHandleResult.NotCompatible:
+ this.Monitor.LogOnce(loggedMessages, $"{logPrefix}Broken code in {filename}: {handler.NounPhrase}.");
if (!assumeCompatible)
throw new IncompatibleInstructionException(handler.NounPhrase, $"Found an incompatible CIL instruction ({handler.NounPhrase}) while loading assembly {filename}.");
- this.Monitor.LogOnce(loggedMessages, $"{logPrefix}Found an incompatible CIL instruction ({handler.NounPhrase}) while loading assembly {filename}, but SMAPI is configured to allow it anyway. The mod may crash or behave unexpectedly.", LogLevel.Warn);
+ this.Monitor.LogOnce(loggedMessages, $"{logPrefix}Found broken code ({handler.NounPhrase}) while loading assembly {filename}, but SMAPI is configured to allow it anyway. The mod may crash or behave unexpectedly.", LogLevel.Warn);
break;
case InstructionHandleResult.DetectedGamePatch: