Skip to content

Commit

Permalink
Merge pull request #88 from gorserg/add_reponse_to_datebridge_error
Browse files Browse the repository at this point in the history
Логування відповіді ЦБД в мості
  • Loading branch information
vmaksymiv committed Oct 17, 2016
2 parents fbeaf9d + 6f2e2b1 commit 5047580
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openprocurement/tender/competitivedialogue/databridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ def put_tender_stage2(self):
logger.warn("Catch 422 status, stop create tender stage2",
extra=journal_context({"MESSAGE_ID": DATABRIDGE_UNSUCCESSFUL_CREATE},
{"TENDER_ID": new_tender['dialogueID']}))
logger.warn("Error response {}".format(re.message),
extra=journal_context({"MESSAGE_ID": DATABRIDGE_UNSUCCESSFUL_CREATE},
{"TENDER_ID": new_tender['dialogueID']}))
continue
elif re.status_int == 404: # WARNING and don't retry
logger.warn("Catch 404 status, stop create tender stage2",
Expand Down

0 comments on commit 5047580

Please sign in to comment.