Skip to content
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

Override URL's toString with encode #2939

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Override URL's toString with encode #2939

merged 1 commit into from
Jun 27, 2024

Conversation

guersam
Copy link
Contributor

@guersam guersam commented Jun 27, 2024

It's quite common to include a URL in the log message, but it's easy to forget to add .encode in the string interpolator.

The default toString method produces strings like URL(/api/some/endpoint,Relative,JavaLinkedHashMapQueryParams({}),None), which are difficult to comprehend.

@jdegoes jdegoes merged commit 3a91fc0 into zio:main Jun 27, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants