From 37275d9397f4dedb21ec2bc28d8963acaa002fb2 Mon Sep 17 00:00:00 2001 From: goaaats <16760685+goaaats@users.noreply.github.com> Date: Fri, 29 Oct 2021 01:26:37 +0200 Subject: [PATCH] refactor: cleanup logging --- Dalamud/Game/Command/CommandManager.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dalamud/Game/Command/CommandManager.cs b/Dalamud/Game/Command/CommandManager.cs index a0c0c6243..8519d9b37 100644 --- a/Dalamud/Game/Command/CommandManager.cs +++ b/Dalamud/Game/Command/CommandManager.cs @@ -162,12 +162,8 @@ namespace Dalamud.Game.Command } else { - // I tried to get the start info to determine language with an else if and it failed, so this always checks instead - // Log.Debug("Trying Chinese mod pack command parse as fallback"); - // Log.Information($"Message: {message.ToString()}"); - // Japanese failed. Try Chinese as a fallback. + // Always match for china, since they patch in language files without changing the ClientLanguage. cmdMatch = this.commandRegexCn.Match(message.TextValue).Groups["command"]; - // Log.Information($"Success:{cmdMatch2.Success} Groups: {this.commandRegexCn.Match(message.TextValue).Groups.Keys.GetEnumerator().Current}\nValues:{cmdMatch2.Value}"); if (cmdMatch.Success) { // Yes, it's a Chinese fallback chat command.