OpenAPITools / OpenAPITools/openapi-generator
[BUG] [C# Generator] Generated client not logging
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
No matter which library I use (even with httpclient), logging seems to be disabled.
When I try with a separate HttpClient (without using the generated client), I get the usual
info: System.Net.Http.HttpClient.xyz
Start processing HTTP request GET https://asdf.com/any?query=any
Injecting a HttpClient in the constructor does not change this behavior.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the C# Generator and trace how a generated client uses an injected HttpClient, comparing it with the standalone HttpClient behavior described in the report. Confirm the cause of the missing logging and verify that requests from the generated client produce the expected System.Net.Http.HttpClient log messages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100