瀏覽代碼

* Fix loglevel for ListMode

Michaël Van Canneyt 2 年之前
父節點
當前提交
3eab1c1c02
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      packages/fpmkunit/src/fpmkunit.pp

+ 3 - 2
packages/fpmkunit/src/fpmkunit.pp

@@ -5438,7 +5438,7 @@ end;
 
 
 procedure TCustomInstaller.Log(Level: TVerboseLevel; Const Msg: String);
 procedure TCustomInstaller.Log(Level: TVerboseLevel; Const Msg: String);
 begin
 begin
-  If Level in FLogLevels then
+  If (Level in FLogLevels) or (ListMode and (level=vlCommand)) then
     begin
     begin
     Writeln(StdOut, Msg);
     Writeln(StdOut, Msg);
     Flush(StdOut);
     Flush(StdOut);
@@ -6558,7 +6558,8 @@ begin
       EnterCriticalSection(FGeneralCriticalSection);
       EnterCriticalSection(FGeneralCriticalSection);
       try
       try
 {$endif NO_THREADING}
 {$endif NO_THREADING}
-      if Level in [vlInfo,vlDebug] then
+      if (Level in [vlInfo,vlDebug])
+         or (ListMode and (level=vlCommand)) then
         FOnLog(Level,GLogPrefix+Msg)
         FOnLog(Level,GLogPrefix+Msg)
       else
       else
         FOnLog(Level,Msg);
         FOnLog(Level,Msg);