Pass search_params to the logger instead of just params