

def _should_log_for(app, mode):
    policy = app.config['LOGGER_HANDLER_POLICY']
    if ((policy == mode) or (policy == 'always')):
        return True
    return False

dataset/ETHPy150Open pallets/flask/flask/logging.py _should_log_for/original