Log search errors in ns_api.py.