Log url and referrer on error