diff --git a/release_notes.md b/release_notes.md index 20324c995..099c92198 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,4 +1,4 @@ -# Azure Functions CLI 4.2.2 +# Azure Functions CLI 4.2.3 #### Host Version @@ -7,4 +7,4 @@ #### Changes -- Fix .NET template install bug (#4612) +- Log the resolved worker runtime and `local.settings.json` location, if found. diff --git a/src/Cli/func/Common/SecretsManager.cs b/src/Cli/func/Common/SecretsManager.cs index b4128538f..27ab787f2 100644 --- a/src/Cli/func/Common/SecretsManager.cs +++ b/src/Cli/func/Common/SecretsManager.cs @@ -3,7 +3,9 @@ using Azure.Functions.Cli.Helpers; using Azure.Functions.Cli.Interfaces; +using Colors.Net; using Microsoft.Azure.WebJobs.Script; +using Microsoft.Build.Logging; namespace Azure.Functions.Cli.Common { @@ -24,6 +26,8 @@ public static string AppSettingsFilePath secretsFile, }); var secretsFilePath = Path.Combine(rootPath, secretsFile); + + ColoredConsole.WriteLine($"{secretsFile} found in root directory ({rootPath})."); return secretsFilePath; } } diff --git a/src/Cli/func/Helpers/WorkerRuntimeLanguageHelper.cs b/src/Cli/func/Helpers/WorkerRuntimeLanguageHelper.cs index 233c3384d..c0d22dd40 100644 --- a/src/Cli/func/Helpers/WorkerRuntimeLanguageHelper.cs +++ b/src/Cli/func/Helpers/WorkerRuntimeLanguageHelper.cs @@ -180,7 +180,9 @@ public static WorkerRuntime GetCurrentWorkerRuntimeLanguage(ISecretsManager secr try { - return NormalizeWorkerRuntime(setting); + WorkerRuntime workerRuntime = NormalizeWorkerRuntime(setting); + ColoredConsole.WriteLine($"Resolving worker runtime to '{GetRuntimeMoniker(workerRuntime)}'."); + return workerRuntime; } catch {