From eac9fdf3aa15f991fab79e3ef6a365ecf187ba7b Mon Sep 17 00:00:00 2001 From: Williams Date: Thu, 30 Nov 2023 15:13:03 -0500 Subject: [PATCH] adding logging --- tr_sys/tr_ars/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tr_sys/tr_ars/utils.py b/tr_sys/tr_ars/utils.py index d7001d64..09f377a6 100644 --- a/tr_sys/tr_ars/utils.py +++ b/tr_sys/tr_ars/utils.py @@ -556,7 +556,7 @@ def post_process(data,key, agent_name): scrub_null_attributes(data) except Exception as e: logging.info("Problem with the second scrubbing of null attributes") - + logging.info("pre blocklist for "+str(key)) try: remove_blocked(mesg) except Exception as e: @@ -707,7 +707,7 @@ def remove_blocked(mesg, blocklist=None): blocked_version.code=200 blocked_version.data=data blocked_version.save() - logging.info('Removing results containing the following %s from PK: %s' % (str(removed_ids), str(blocked_version.id))) + logging.info('Removing results containing the following %s from PK: %s' % (str(nodes_to_remove), str(blocked_version.id))) return (str(blocked_version.id),removed_nodes,results_to_remove) def scrub_null_attributes(data):