summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-04-26 16:21:03 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-04-26 16:21:03 -0400
commitafc8ae69fead4099ac86dcea6aa874f5b1540e29 (patch)
treea2ad98ac42b9a49e9212cb6c5b7a911dc0693143 /src/StardewModdingAPI
parent4ef957c191f3ad012b234d533810dd59717f30c1 (diff)
downloadSMAPI-afc8ae69fead4099ac86dcea6aa874f5b1540e29.tar.gz
SMAPI-afc8ae69fead4099ac86dcea6aa874f5b1540e29.tar.bz2
SMAPI-afc8ae69fead4099ac86dcea6aa874f5b1540e29.zip
No longer suppress console output from the log file
Console messages appear in the console (in developer mode only), but weren't saved to the log file based on the argument that they weren't relevant. However, that also suppresses the game's load-game errors in Stardew Valley 1.2, which makes troubleshooting save issues more complicated. To avoid any such issues in the future, they're now always logged to the file. If you need to log a message that isn't shown to the user, use System.Diagnostics.Debug instead.
Diffstat (limited to 'src/StardewModdingAPI')
-rw-r--r--src/StardewModdingAPI/Program.cs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index 6e7f9950..18a5c999 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -247,7 +247,6 @@ namespace StardewModdingAPI
// redirect direct console output
{
Monitor monitor = this.GetSecondaryMonitor("Console.Out");
- monitor.WriteToFile = false; // not useful for troubleshooting mods per discussion
if (monitor.WriteToConsole)
this.ConsoleManager.OnMessageIntercepted += line => monitor.Log(line, LogLevel.Trace);
}