diff --git a/src/Azure.Functions.Cli/Common/Utilities.cs b/src/Azure.Functions.Cli/Common/Utilities.cs index 978733867..c0299e599 100644 --- a/src/Azure.Functions.Cli/Common/Utilities.cs +++ b/src/Azure.Functions.Cli/Common/Utilities.cs @@ -13,6 +13,7 @@ using Microsoft.Azure.WebJobs.Script; using Microsoft.Azure.WebJobs.Script.Configuration; using Microsoft.Azure.WebJobs.Script.Diagnostics; +using Microsoft.Azure.WebJobs.Script.Workers; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; @@ -246,7 +247,7 @@ internal static bool JobHostConfigSectionExists(IConfigurationRoot hostJsonConfi /// internal static bool DefaultLoggingFilter(string category, LogLevel actualLevel, LogLevel userLogMinLevel, LogLevel systemLogMinLevel) { - if (LogCategories.IsFunctionUserCategory(category)) + if (LogCategories.IsFunctionUserCategory(category) || category.Equals(WorkerConstants.FunctionConsoleLogCategoryName, StringComparison.OrdinalIgnoreCase)) { return actualLevel >= userLogMinLevel; } diff --git a/src/Azure.Functions.Cli/Helpers/GlobalCoreToolsSettings.cs b/src/Azure.Functions.Cli/Helpers/GlobalCoreToolsSettings.cs index 789f92470..f0feff694 100644 --- a/src/Azure.Functions.Cli/Helpers/GlobalCoreToolsSettings.cs +++ b/src/Azure.Functions.Cli/Helpers/GlobalCoreToolsSettings.cs @@ -15,7 +15,7 @@ public static WorkerRuntime CurrentWorkerRuntime { if (_currentWorkerRuntime == WorkerRuntime.None) { - ColoredConsole.Error.WriteLine(QuietWarningColor("Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell]")); + ColoredConsole.Error.WriteLine(QuietWarningColor("Can't determine project language from files. Please use one of [--csharp, --javascript, --typescript, --java, --python, --powershell], --custom")); } return _currentWorkerRuntime; }