Add logging command in build tool when explicitly specified

This commit is contained in:
Wojtek Figat
2023-04-13 21:03:37 +02:00
parent 91c017713c
commit 924ee9085f

View File

@@ -384,7 +384,11 @@ namespace Flax.Build
Stopwatch stopwatch = Stopwatch.StartNew();
if (!options.HasFlag(RunOptions.NoLoggingOfRunCommand))
{
Log.Verbose("Running: " + app + (string.IsNullOrEmpty(commandLine) ? "" : " " + commandLine));
var msg = "Running: " + app + (string.IsNullOrEmpty(commandLine) ? "" : " " + commandLine);
if (options.HasFlag(RunOptions.ConsoleLogOutput))
Log.Info(msg);
else
Log.Verbose(msg);
}
bool redirectStdOut = (options & RunOptions.NoStdOutRedirect) != RunOptions.NoStdOutRedirect;