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

Support arrays in parameters value logging #24596

Merged
merged 1 commit into from
Apr 8, 2021
Merged

Conversation

roji
Copy link
Member

@roji roji commented Apr 6, 2021

Note that this will capture any IList, which may be a bit wide (Npgsql supports arrays and generic lists).

Closes #24595

@roji roji requested a review from a team April 6, 2021 15:32
@ErikEJ
Copy link
Contributor

ErikEJ commented Apr 6, 2021

Why 5 items?

@roji
Copy link
Member Author

roji commented Apr 6, 2021

Just because :) The byte[] formatting truncates at 32 bytes, also arbitrary. Arrays can contain anything - including strings - so a significantly lower number seems like a good idea to not generate too much logging. I think it should be seen as something that allows more or less identifying which parameter it was, rather than providing the full value.

@roji roji merged commit 784624e into main Apr 8, 2021
@roji roji deleted the ArrayParameterFormatting branch April 8, 2021 08:46
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.

Support arrays in parameters value logging
3 participants