mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-07-02 23:14:19 +00:00
Debug elasticsearch
This commit is contained in:
@@ -659,7 +659,7 @@ def save_forensic_report_to_elasticsearch(
|
||||
try:
|
||||
forensic_doc.save()
|
||||
except Exception as e:
|
||||
raise ElasticsearchError("Elasticsearch error: {0}".format(e.__str__()))
|
||||
raise ElasticsearchError("Elasticsearch error: {0}. Doc: {1}".format(e.__str__(), forensic_doc.__str__())
|
||||
except KeyError as e:
|
||||
raise InvalidForensicReport(
|
||||
"Forensic report missing required field: {0}".format(e.__str__())
|
||||
|
||||
Reference in New Issue
Block a user