Azure / Azure/azure-functions-host

Unresolved placeholders in error log message

Open
#3,133 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

During the execution of my Azure Function, the script host is logging the following:
Executed '{FullName}' (Failed, Id={InvocationId})

FullName and InvocationId are not being resolved. I assume there is a $ sign missing in the C# code, similar to the bug in line 75 of this corresponding unit test:
https://www.csharpcodi.com/vs2/486/azure-webjobs-sdk/test/Microsoft.Azure.WebJobs.Host.UnitTests/Loggers/LoggerExtensionsTests.cs/

#### Investigative information

Please provide the following:

- Function App version (1.0 or 2.0-beta): 1.0

Contributor guide

Open the contributing guide

Research direction

Start with the referenced LoggerExtensionsTests.cs unit test, especially the line 75 comparison, and trace the code that formats the Azure Functions execution log message. Confirm the test covers the reported Function App 1.0 output, then ensure the completed message resolves FullName and InvocationId instead of leaving placeholders.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.