better logging when getting url