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.
Janet Carson
09/13/2024, 10:03 PM
The test is importing prefect but is not starting any actual flows or tasks
i
Igor
09/15/2024, 6:05 PM
@Janet Carson hi i think you can set up PREFECT_LOGGING_ROOT_LEVEL to 'CRITICAL' or 'ERROR'
Igor
09/15/2024, 6:05 PM
or you can clear logger.handler
j
Janet Carson
09/18/2024, 11:47 PM
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.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.