From bd146e74e8970156da82684a821e5d29ad054b97 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 25 Apr 2018 12:04:14 -0400 Subject: [PATCH] update release notes, minor tweaks (#475) --- docs/release-notes.md | 1 + src/SMAPI/Framework/Monitor.cs | 9 +++++---- src/SMAPI/Program.cs | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 624891eb..38a8b00d 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -13,6 +13,7 @@ * Added `Context.IsMultiplayer` and `Context.IsMainPlayer` flags. * Fixed assets loaded by temporary content managers not being editable. * Fixed issue where assets didn't reload correctly when the player switches language. + * Fixed user command input not saved to log file. * Fixed `helper.ModRegistry.GetApi` interface validation errors not mentioning which interface caused the issue. * **Breaking change**: dropped some deprecated APIs. * **Breaking change**: mods can't intercept chatbox input, including the game's hotkey to toggle the chatbox (default `T`). diff --git a/src/SMAPI/Framework/Monitor.cs b/src/SMAPI/Framework/Monitor.cs index b65932b2..210a059d 100644 --- a/src/SMAPI/Framework/Monitor.cs +++ b/src/SMAPI/Framework/Monitor.cs @@ -100,10 +100,11 @@ namespace StardewModdingAPI.Framework this.LogFile.WriteLine(""); } - /// Writes user input to the log file. - /// The input to write. - internal void LogUserInputToFile(string input) + /// Log console input from the user. + /// The user input to log. + internal void LogUserInput(string input) { + // user input already appears in the console, so just need to write to file if (this.WriteToFile) { string prefix = this.GenerateMessagePrefix(this.Source, LogLevel.Info); @@ -158,7 +159,7 @@ namespace StardewModdingAPI.Framework this.LogFile.WriteLine(fullMessage); } - /// Generates a message prefix for the current time. + /// Generate a message prefix for the current time. /// The name of the mod logging the message. /// The log level. private string GenerateMessagePrefix(string source, LogLevel level) diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs index 73e8bb07..f1152d82 100644 --- a/src/SMAPI/Program.cs +++ b/src/SMAPI/Program.cs @@ -449,7 +449,7 @@ namespace StardewModdingAPI continue; // write input to log file - this.Monitor.LogUserInputToFile(input); + this.Monitor.LogUserInput(input); // parse input try