debug logging for ES queries