浏览代码

Bug fix: With debug logging enabled, the echoed script commands and XML log group names miss the command name

Caused by 069aa20f

Source commit: 2692655a4bf1261b907b346c3c8d0179c70c0bd0
Martin Prikryl 2 年之前
父节点
当前提交
7f7427a236
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      source/core/Script.cpp

+ 3 - 2
source/core/Script.cpp

@@ -507,10 +507,11 @@ void __fastcall TScript::Command(UnicodeString Cmd)
 
         if (Configuration->ActualLogProtocol >= 1)
         {
+          UnicodeString LogCmdParams = LogCmd;
           UnicodeString DummyLogCmd;
-          if (DebugAlwaysTrue(CutToken(LogCmd, DummyLogCmd)))
+          if (DebugAlwaysTrue(CutToken(LogCmdParams, DummyLogCmd)))
           {
-            std::unique_ptr<TScriptProcParams> Parameters(new TScriptProcParams(FCommands->ResolveCommand(Cmd), LogCmd));
+            std::unique_ptr<TScriptProcParams> Parameters(new TScriptProcParams(FCommands->ResolveCommand(Cmd), LogCmdParams));
             Parameters->LogOptions(LogOption);
           }
         }