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

ability to turn off debug sql #32

Closed
adamfoneil opened this issue Feb 21, 2023 · 0 comments
Closed

ability to turn off debug sql #32

adamfoneil opened this issue Feb 21, 2023 · 0 comments

Comments

@adamfoneil
Copy link
Owner

adamfoneil commented Feb 21, 2023

An issue I run with this library is that sometimes I need to "break on all errors" when debugging, and this always breaks when resolving params due to a limitation in inspecting a Dapper DynamicParameters object. This makes it hard to debug the actual issue I'm trying to discover by "breaking on all errors." I'm trying to avoid this false positive, essentially.

What I'd like to be able to do is set a global config setting somewhere (static property) that turns debugging on and off. I would probably keep it on for backward compatibility. But if turned off, then the DebugSql would not be set.

adamfoneil added a commit that referenced this issue Feb 21, 2023
adamfoneil added a commit that referenced this issue Feb 21, 2023
adamfoneil added a commit that referenced this issue Feb 21, 2023
adamfoneil added a commit that referenced this issue Feb 21, 2023
adamfoneil added a commit that referenced this issue Feb 21, 2023
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

No branches or pull requests

1 participant