Nicer search logging

This commit is contained in:
Simon
2018-11-17 12:04:59 -05:00
parent d8df91a0d6
commit 372c10b5ab
2 changed files with 10 additions and 4 deletions

View File

@@ -177,6 +177,7 @@ class ElasticSearchEngine(SearchEngine):
date_max) -> {}:
if self.filter.should_block(query):
logger.info("Search was blocked")
raise InvalidQueryException("One or more terms in your query is blocked by the search filter. "
"This incident has been reported.")