From 78a9a382423abd22df2933e03f01397e55409284 Mon Sep 17 00:00:00 2001 From: abdollahis2 Date: Fri, 15 Mar 2024 14:25:52 -0400 Subject: [PATCH] added more logging --- tr_sys/tr_ars/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tr_sys/tr_ars/utils.py b/tr_sys/tr_ars/utils.py index 45a14b88..49e82051 100644 --- a/tr_sys/tr_ars/utils.py +++ b/tr_sys/tr_ars/utils.py @@ -592,7 +592,7 @@ def post_process(data,key, agent_name): try: results = get_safe(data,"message","results") if results is not None: - logging.info("+++ pre-scoring +++") + logging.info("+++ pre-scoring for agent: %s & pk: %s" % (agent_name, key)) new_res=scoring.compute_from_results(results) data['message']['results']=new_res logging.info("scoring succeeded for agent %s and pk %s" % (agent_name, key)) @@ -614,10 +614,10 @@ def post_process(data,key, agent_name): mesg.status='D' mesg.code=200 mesg.save_compressed_dict(data) - logging.debug("Time before save") + logging.info("Time before save") with transaction.atomic(): mesg.save() - logging.debug("Time after save") + logging.info("Time after save") except DatabaseError as e: mesg.status ='E' mesg.code=422