Switch to Flask logging instead of python built in