Fix flask logger