diff --git a/tr_sys/tr_ars/api.py b/tr_sys/tr_ars/api.py index 63c5c710..c75041ae 100644 --- a/tr_sys/tr_ars/api.py +++ b/tr_sys/tr_ars/api.py @@ -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