Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpClient]  deprecate setLogger() methods of decorating clients #54806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2024

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented May 2, 2024

Q A
Branch? 7.1
Bug fix? no
New feature? no
Deprecations? yes
Issues Fix #54674 (review)
License MIT

@carsonbot carsonbot added this to the 7.1 milestone May 2, 2024
@carsonbot carsonbot changed the title [HttpClient] deprecate setLogger() methods of decorating clients [HttpClient]  deprecate setLogger() methods of decorating clients May 2, 2024
@derrabus
Copy link
Member

derrabus commented May 2, 2024

Aren't those proxy methods tested anywhere? 🙈

@fabpot
Copy link
Member

fabpot commented May 2, 2024

Thank you @xabbuh.

@fabpot fabpot merged commit 96d664e into symfony:7.1 May 2, 2024
@xabbuh xabbuh deleted the pr-54674 branch May 2, 2024 11:46
@fabpot fabpot mentioned this pull request May 2, 2024
nicolas-grekas added a commit that referenced this pull request Oct 22, 2024
This PR was merged into the 7.1 branch.

Discussion
----------

[HttpClient] Fix typo in deprecation message

| Q             | A
| ------------- | ---
| Branch?       | 7.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->
| License       | MIT

Just a typo fix from #54806

This confused me initially because I thought I had to configure it on a wrapper, so add one more layer, but couldn't find a logging wrapper client..

Anyway `@xabbuh` one more question do I understand it correctly that if one just uses autowiring and the framework.http_client config to create a client, then the loggers will be set by default and nothing has to be done? No need to call setLogger explicitly on the client right?

Commits
-------

648e531 Fix typo in deprecation message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants