Fix incorrect logging

This line causes an exception that means search fails.
I've wrapped it into a tuple, but I don't know if I can just pass the string formatting off to the logger.