Yet another logging question -- I know that when y...
# ask-community
j
Yet another logging question -- I know that when you import the prefect library, it starts setting up logging to its own liking. Is there any way at all to totally shut that down? I have pytests that use the pytest
caplog
feature, and they have started failing.
The test is importing prefect but is not starting any actual flows or tasks
i
@Janet Carson hi i think you can set up PREFECT_LOGGING_ROOT_LEVEL to 'CRITICAL' or 'ERROR'
or you can clear logger.handler
j
I was using caplog.clear() but that didn't help. I had turned off the propagate on the library log due to other problems but need to turn it back on during testing.