How to disable logger function inside streamlit?

I use streamlit and leaf modules at same time, they both have logging functions. Some logger bug happens when I import streamlit in leaf files and vice versa. How can I disable it in the config file?