Azure / Azure/azure-functions-core-tools
Do not include "Executing JsonResult, writing value ..." message if --verbose flag is not specified
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 15
Description
My function returns an `IActionResult`, actually a `JsonResult`. In the console, the following message is logged:
```
Executing JsonResult, writing value of type '<>f__AnonymousType1`2[[System.Boolean, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]'.
```
This does not seems to be an important message, so I think it should not be included in the silent version. And for me, this message seems useless: if you include the verbose flag, you'll see the result of the executed function, so why include this too? And what can we do with the assembly names?
Contributor guide
Research direction
Reproduce the console output for a function returning a JsonResult with and without the --verbose flag, then trace where the "Executing JsonResult" message is emitted. Done means the message is absent without --verbose while the existing verbose output remains available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100