working out flask logging