SPARK-3014. Log a more informative messages in a couple failure scenario...

...s
I'm not too familiar with this part of the code. Can you explain what it does? Why is it no longer needed?