mediacloud / news-search-api

Internal API server that offers search access to the Media Cloud Online News Archive (in Elasticsearch).
https://mediacloud.org
GNU Affero General Public License v3.0
1 stars 3 forks source link

Need better visibility into queries #94

Open philbudne opened 4 days ago

philbudne commented 4 days ago

Code should use logger.debug to show what incoming queries look like, and what is sent to ES

There should be a LOG_LEVEL environment variable (defaulting to INFO if not set), which deploy.sh should set to DEBUG for development deployments, and docker-compose.yml should pass thru to the containers.

philbudne commented 4 days ago

Maybe log the query payload in JSON format?