Added more informative logging on lookup error.
Self-review.