Skip to content

Commit 937048c

Browse files
authored
Log the resolved worker runtime and local.settings.json location (#4628)
1 parent 54d8b71 commit 937048c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

release_notes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Azure Functions CLI 4.3.0
22

3-
43
#### Host Version
54

65
- Host Version: 4.1041.200
76
- In-Proc Host Version: 4.41.100 (4.841.100, 4.641.100)
87

98
#### Changes
9+
10+
- Log the resolved worker runtime and `local.settings.json` location, if found.
1011
- Add `func pack` basic functionality (#4600)
1112
- Clean up HelpAction and add `func pack` to help menu (#4639)
1213
- Add comprehensive pack validations for all Azure Functions runtimes (#4625)

src/Cli/func/Common/SecretsManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
using Azure.Functions.Cli.Helpers;
55
using Azure.Functions.Cli.Interfaces;
6+
using Colors.Net;
67
using Microsoft.Azure.WebJobs.Script;
8+
using Microsoft.Build.Logging;
79

810
namespace Azure.Functions.Cli.Common
911
{
@@ -24,6 +26,8 @@ public static string AppSettingsFilePath
2426
secretsFile,
2527
});
2628
var secretsFilePath = Path.Combine(rootPath, secretsFile);
29+
30+
ColoredConsole.WriteLine($"{secretsFile} found in root directory ({rootPath}).");
2731
return secretsFilePath;
2832
}
2933
}

src/Cli/func/Helpers/WorkerRuntimeLanguageHelper.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ public static WorkerRuntime GetCurrentWorkerRuntimeLanguage(ISecretsManager secr
180180

181181
try
182182
{
183-
return NormalizeWorkerRuntime(setting);
183+
WorkerRuntime workerRuntime = NormalizeWorkerRuntime(setting);
184+
ColoredConsole.WriteLine($"Resolving worker runtime to '{GetRuntimeMoniker(workerRuntime)}'.");
185+
return workerRuntime;
184186
}
185187
catch
186188
{

0 commit comments

Comments
 (0)