zazuko / sparql-proxy

SPARQL proxy middleware
4 stars 1 forks source link

Do not override all debug namespaces #6

Closed vhf closed 5 years ago

vhf commented 5 years ago

I got it wrong from debug's documentation: debug.enable() replaces all namespaces. This means that if you had a package with trifid:something and used trifid:*, trifid:something would print until it enters this package which would enable sparql-proxy instead. What we wanted here was to enable sparql-proxy in addition to already enabled namespaces.

The only way of getting all namespaces is to use debug.disable(): with this PR we retrieve all enabled namespaces and do exactly what I described.