diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-03-08 14:38:24 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-03-08 14:38:24 -0400 |
commit | e39b9e0d699079edfbcf8595d7499aff894578b6 (patch) | |
tree | f6f4f0da07a0908b135f20de828d490760503a23 /src/SMAPI.Web/Framework | |
parent | 5ba53cb390e06094587b90bb4e00f000725bfc05 (diff) | |
download | SMAPI-e39b9e0d699079edfbcf8595d7499aff894578b6.tar.gz SMAPI-e39b9e0d699079edfbcf8595d7499aff894578b6.tar.bz2 SMAPI-e39b9e0d699079edfbcf8595d7499aff894578b6.zip |
fix log parse issues
Diffstat (limited to 'src/SMAPI.Web/Framework')
-rw-r--r-- | src/SMAPI.Web/Framework/LogParsing/LogMessageBuilder.cs | 5 | ||||
-rw-r--r-- | src/SMAPI.Web/Framework/LogParsing/LogParser.cs | 2 |
2 files changed, 4 insertions, 3 deletions
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; |