Debug logging improvements for cursor and full text of bytes read