Skip to content

Commit

Permalink
Merge pull request #692 from NCATSTranslator/addPKForAppraiser
Browse files Browse the repository at this point in the history
Adding PK for logging purposes for Appraiser
  • Loading branch information
ShervinAbd92 authored Sep 30, 2024
2 parents 3528471 + 41f8d4b commit dcf94f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tr_sys/tr_ars/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,9 @@ def scrub_null_attributes(data):
def appraise(mesg, data, agent_name,retry_counter=0):
headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
json_data = json.dumps(data)

#adding PK for Max's logs
json_data["pk"]=str(mesg.id)
logging.info('sending data for agent: %s to APPRAISER URL: %s' % (agent_name, APPRAISER_URL))
with tracer.start_as_current_span("get_appraisal") as span:
try:
Expand Down

0 comments on commit dcf94f9

Please sign in to comment.