log the whole page if there is an error