Browse Source

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

(cherry picked from commit 99cb32f0b41f47c3ba525a9552959705ae045eb3)

Source commit: 3c1e0a639bd77f8bfc87025e257ef5999e9664ef
Martin Prikryl 7 năm trước cách đây
mục cha
commit
bbefb34bc9
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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)
     {
-      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)
       {
+        FConsole->Print(ExitCodeMessage + L"\n");
         UnicodeString LogMessage = FConsole->FinalLogMessage();
         if (!LogMessage.IsEmpty())
         {
           FScript->Log(llMessage, LogMessage);
+          FConsole->Print(LogMessage + L"\n");
         }
       }
     }