浏览代码

With logging level 1 and higher, printing exit debug information on output too.

Source commit: 99cb32f0b41f47c3ba525a9552959705ae045eb3
Martin Prikryl 7 年之前
父节点
当前提交
0148b88adf
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      source/windows/ConsoleRunner.cpp

+ 4 - 1
source/windows/ConsoleRunner.cpp

@@ -2098,13 +2098,16 @@ int __fastcall TConsoleRunner::Run(const UnicodeString Session, TOptions * Optio
 
 
     if (FScript != NULL)
     if (FScript != NULL)
     {
     {
-      FScript->Log(llMessage, FORMAT(L"Exit code: %d", (ExitCode)));
+      UnicodeString ExitCodeMessage = FORMAT(L"Exit code: %d", (ExitCode));
+      FScript->Log(llMessage, ExitCodeMessage);
       if (Configuration->LogProtocol >= 1)
       if (Configuration->LogProtocol >= 1)
       {
       {
+        FConsole->Print(ExitCodeMessage + L"\n");
         UnicodeString LogMessage = FConsole->FinalLogMessage();
         UnicodeString LogMessage = FConsole->FinalLogMessage();
         if (!LogMessage.IsEmpty())
         if (!LogMessage.IsEmpty())
         {
         {
           FScript->Log(llMessage, LogMessage);
           FScript->Log(llMessage, LogMessage);
+          FConsole->Print(LogMessage + L"\n");
         }
         }
       }
       }
     }
     }