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

chore: log queries when failing #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sergiofenoll
Copy link

@sergiofenoll sergiofenoll commented Feb 7, 2025

Logs queries when they result in an exception being thrown. Chatty services can then disable LOG_SPARQL_ALL or LOG_SPARQL_{QUERIES,UPDATES} but still see queries that result in failures for some hopefully easier debugging.

Note:
This can result in double-logging queries (if the logging env vars are enabled) but this is in-line with how the mu-auth-sudo JS package does it.

Currently available on Docker Hub as sergiofenoll/mu-python-template:latest. Can be used while waiting for this to be merged, tagged and released, or while waiting for a feature branch to be released on this repo.

This can result in double-logging queries (if the logging env vars are enabled)
but this is in-line with how the mu-auth-sudo JS package does it.
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.

None yet

1 participant