mirror of
https://github.com/simon987/od-database.git
synced 2025-12-16 08:09:04 +00:00
Nicer search logging
This commit is contained in:
@@ -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.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user