From e39b9e0d699079edfbcf8595d7499aff894578b6 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 8 Mar 2020 14:38:24 -0400 Subject: fix log parse issues --- src/SMAPI.Web/Framework/LogParsing/LogMessageBuilder.cs | 5 +++-- src/SMAPI.Web/Framework/LogParsing/LogParser.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/SMAPI.Web') 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); } /// Add a new line to the next log message being built. @@ -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); } /// Get a log message for the accumulated values. 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; -- cgit