Skip to content

Commit

Permalink
Downgrade log message about plugin without override argument to debug…
Browse files Browse the repository at this point in the history
… from warning

Original issue

- #1880

was worked around by providing a fall back call without "override" in

- #2018

As a result any user with such a store (in our case just <class
'rdflib.plugins.memory.IOMemory'>) is flooded with such warnings pointing to
that issue #1880 and for all means and purposes AFAIK just need to ignore
them since there is nothing user can do to address it.

That raises the question on why is it a Warning at a user level and not some
debug message for developers/troubleshooting etc?  Hence I am lowering it to
debug level to bring peace of mind to users of the library.
  • Loading branch information
yarikoptic committed Feb 6, 2025
1 parent 62c528d commit e336421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdflib/namespace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ def _store_bind(self, prefix: str, namespace: URIRef, override: bool) -> None:
return self.store.bind(prefix, namespace, override=override)
except TypeError as error:
if "override" in str(error):
logger.warning(
logger.debug(
"caught a TypeError, "
"retrying call to %s.bind without override, "
"see https://github.com/RDFLib/rdflib/issues/1880 for more info",
Expand Down

0 comments on commit e336421

Please sign in to comment.