Fix incorrect logging

This line causes an exception that means search fails.