Added some more logging in beforePhantomRequest.