Skip to content

Commit

Permalink
added additional logging to track async response:
Browse files Browse the repository at this point in the history
  • Loading branch information
abdollahis2 authored and abdollahis2 committed Oct 4, 2023
1 parent 241e14e commit 6ebbe24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tr_sys/tr_ars/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ def message(req, key):
kg = utils.get_safe(data,"message", "knowledge_graph")
actor = Actor.objects.get(pk=mesg.actor_id)
inforesid =actor.inforesid
logging.info('received msg from agent: %s with parent pk: %s' % (str(inforesid), str(mesg.ref_id)))
if mesg.status=='E':
return HttpResponse("Response received but Message is already in state "+str(mesg.code)+". Response rejected\n",status=400)
if res is not None and len(res)>0:
Expand Down

0 comments on commit 6ebbe24

Please sign in to comment.