def _format_local(local_path, local_is_path):
    """Format a path for log output"""
    if local_is_path:
        return local_path
    else:
        return getattr(local_path, 'name', '<file obj>')
