Skip to content

Commit e336421

Browse files
committed
Downgrade log message about plugin without override argument to debug 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.
1 parent 62c528d commit e336421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rdflib/namespace/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ def _store_bind(self, prefix: str, namespace: URIRef, override: bool) -> None:
718718
return self.store.bind(prefix, namespace, override=override)
719719
except TypeError as error:
720720
if "override" in str(error):
721-
logger.warning(
721+
logger.debug(
722722
"caught a TypeError, "
723723
"retrying call to %s.bind without override, "
724724
"see https://github.com/RDFLib/rdflib/issues/1880 for more info",

0 commit comments

Comments
 (0)