Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added more logging #600

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tr_sys/tr_ars/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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
Expand Down