Hello! Latest version of Griffe, 0.48, deprecated its logger names. Since it's not possible to detect usage of logger names, we can't emit deprecation warnings, so here am I giving you a heads up :slightly_smiling_face:
I see that you're getting the logger of the Google docstring parser module. Next version of Griffe, v1, will use a single name for all loggers (so, a global logger): "griffe".
But I suspect you don't want to disable all Griffe warning logs, and rather just the ones emitted when parsing docstrings. For this, v1 will let you import the Griffe logger and disable it temporarily:
import griffe
with griffe.logger.disable():
sections = griffe.parse_google(griffe.Docstring(o.__doc__))
Since we can't allow a deprecation period where both uses are valid, here is a workaround while waiting for v1:
Hello! Latest version of Griffe, 0.48, deprecated its logger names. Since it's not possible to detect usage of logger names, we can't emit deprecation warnings, so here am I giving you a heads up :slightly_smiling_face:
I see that you're getting the logger of the Google docstring parser module. Next version of Griffe, v1, will use a single name for all loggers (so, a global logger):
"griffe"
.But I suspect you don't want to disable all Griffe warning logs, and rather just the ones emitted when parsing docstrings. For this, v1 will let you import the Griffe logger and disable it temporarily:
Since we can't allow a deprecation period where both uses are valid, here is a workaround while waiting for v1:
This way, you don't use the deprecated logger name, and when upgrading to v1 it will still work. Then you can finally use
griffe.logger.disable
.If anything is unclear, let me know!