Log before doing stuff in search