Debug logging for #176