def _log(): def generate(): with open(LOG_CONFIG_FILE) as f: for row in f: yield row return Response(generate(), mimetype='text/plain')