From 924ee9085f8956bbb25fcfeb464f8677e1c18d83 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Thu, 13 Apr 2023 21:03:37 +0200 Subject: [PATCH] Add logging command in build tool when explicitly specified --- Source/Tools/Flax.Build/Utilities/Utilities.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Tools/Flax.Build/Utilities/Utilities.cs b/Source/Tools/Flax.Build/Utilities/Utilities.cs index d731dcec5..a81072cff 100644 --- a/Source/Tools/Flax.Build/Utilities/Utilities.cs +++ b/Source/Tools/Flax.Build/Utilities/Utilities.cs @@ -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;