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 d0e8aed commit e8328be
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,10 +417,10 @@ 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 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:
logging.info('received msg from agent: %s with parent pk: %s and res_num: %s' % (str(inforesid), str(mesg.ref_id), len(res)))
mesg.result_count = len(res)
scorestat = utils.ScoreStatCalc(res)
mesg.result_stat = scorestat
Expand Down

0 comments on commit e8328be

Please sign in to comment.