Log search query at debug level