Skip to content
Snippets Groups Projects
Commit 9d56707d authored by DESPRES Damien's avatar DESPRES Damien
Browse files

Merge remote-tracking branch 'origin/master' into development

parents ed515d70 791a3694
Branches
Tags
2 merge requests!24fix #12830,!23merge dev into master
Pipeline #29620 passed
FROM python:3-slim FROM python:3.9-slim
WORKDIR /app WORKDIR /app
......
...@@ -158,8 +158,15 @@ def index_docs(channel, method, properties, body): ...@@ -158,8 +158,15 @@ def index_docs(channel, method, properties, body):
else: else:
channel.basic_nack(delivery_tag = method.delivery_tag, requeue=1) channel.basic_nack(delivery_tag = method.delivery_tag, requeue=1)
#print("") #print("")
logging.error(es_body) #logging.error(json.dumps(rep, indent=4))
logging.error(json.dumps(rep, indent=4)) try:
logging.error(json.dumps([
item.get("index", {}).get("error", {}).get("reason")
for item in rep.get("items", [])
],
indent=4))
except:
pass
raise Exception('Failed to push documents to Elasticsearch.') raise Exception('Failed to push documents to Elasticsearch.')
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment