summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/release-notes.md3
-rw-r--r--src/SMAPI.Web/Framework/LogParsing/LogMessageBuilder.cs5
-rw-r--r--src/SMAPI.Web/Framework/LogParsing/LogParser.cs2
3 files changed, 6 insertions, 4 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index fe4349c9..4a136df5 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -11,8 +11,9 @@
* Mods are no longer prevented from suppressing key presses in the chatbox. Use this power wisely.
* For the web UI:
- * Optimized log parser for very long multi-line log messages.
* Added option to upload files using a file picker.
+ * Optimized log parser for very long multi-line log messages.
+ * Fixed log parser not detecting folder path in recent versions of SMAPI.
* For SMAPI developers:
* Added internal API to send custom input to the game/mods. This is mainly meant to support Virtual Keyboard on Android, but might be exposed as a public API in future versions.
diff --git a/src/SMAPI.Web/Framework/LogParsing/LogMessageBuilder.cs b/src/SMAPI.Web/Framework/LogParsing/LogMessageBuilder.cs
index 371acfd3..42e283a9 100644
--- a/src/SMAPI.Web/Framework/LogParsing/LogMessageBuilder.cs
+++ b/src/SMAPI.Web/Framework/LogParsing/LogMessageBuilder.cs
@@ -49,7 +49,7 @@ namespace StardewModdingAPI.Web.Framework.LogParsing
this.Time = time;
this.Level = level;
this.Mod = mod;
- this.Text.AppendLine(text);
+ this.Text.Append(text);
}
/// <summary>Add a new line to the next log message being built.</summary>
@@ -60,7 +60,8 @@ namespace StardewModdingAPI.Web.Framework.LogParsing
if (!this.Started)
throw new InvalidOperationException("Can't add text, no log message started yet.");
- this.Text.AppendLine(text);
+ this.Text.Append("\n");
+ this.Text.Append(text);
}
/// <summary>Get a log message for the accumulated values.</summary>
diff --git a/src/SMAPI.Web/Framework/LogParsing/LogParser.cs b/src/SMAPI.Web/Framework/LogParsing/LogParser.cs
index 9ef1c53f..cce80816 100644
--- a/src/SMAPI.Web/Framework/LogParsing/LogParser.cs
+++ b/src/SMAPI.Web/Framework/LogParsing/LogParser.cs
@@ -201,7 +201,7 @@ namespace StardewModdingAPI.Web.Framework.LogParsing
}
// mod path line
- else if (message.Level == LogLevel.Debug && this.ModPathPattern.IsMatch(message.Text))
+ else if (message.Level == LogLevel.Info && this.ModPathPattern.IsMatch(message.Text))
{
Match match = this.ModPathPattern.Match(message.Text);
log.ModPath = match.Groups["path"].Value;