Add additional logging to state whether the function app has content (to debug '0 functions loaded'
) when starting the Functions Host
#9515
Labels
Currently, we do not have a simple way to debug the
'0 functions loaded'
message. This log entry typically indicates that the Functions Host was unable to find and load any functions within the function app project.If the function app has content, this means that there is a problem with the package (content); otherwise, the issue is that there is no content, and this message is expected.
Current logging:
Additionally, we should create documentation that describes how to debug the
'0 functions loaded'
message, which is very specific to the type of runtime (Dotnet
,Dotnet-Isolated
,NodeJs
,Java
,PowerShell
, andPython
). This new documentation should contain debugging instructions for both the V1 and V2 programming models if applicable.If the function app has content, we should do one of the following:
azure-functions-host/src/WebJobs.Script/Diagnostics/Extensions/LoggerExtension.cs
Lines 89 to 92 in 88b610c
https://aka.ms/function-app-invalid-content
.One more thing to consider: If the app has no content, perhaps we should append additional guidance to the
'0 functions loaded'
message, providing information on how to deploy content to the function app./cc @FinVamp1 @sidkri @paulyuk @vrdmr @mattchenderson @fabiocav
The text was updated successfully, but these errors were encountered: