Skip to content

Commit c560028

Browse files
Downgrade log message about plugin without override argument to debug from warning (#3063)
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. Co-authored-by: Nicholas Car <[email protected]>
1 parent b74c657 commit c560028

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
@@ -734,7 +734,7 @@ def _store_bind(self, prefix: str, namespace: URIRef, override: bool) -> None:
734734
return self.store.bind(prefix, namespace, override=override)
735735
except TypeError as error:
736736
if "override" in str(error):
737-
logger.warning(
737+
logger.debug(
738738
"caught a TypeError, "
739739
"retrying call to %s.bind without override, "
740740
"see https://github.com/RDFLib/rdflib/issues/1880 for more info",

0 commit comments

Comments
 (0)