simplify logging
flask should respect global debug setting