Skip to content

Commit

Permalink
added a num_res to be included in the logging
Browse files Browse the repository at this point in the history
  • Loading branch information
abdollahis2 authored and abdollahis2 committed Oct 5, 2023
1 parent 6ebbe24 commit d0e8aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tr_sys/tr_ars/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +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)))
logging.info('received msg from agent: %s with parent pk: %s and res_num: %s' % (str(inforesid), str(mesg.ref_id), len(res)))
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 d0e8aed

Please sign in to comment.