Skip to content

Commit

Permalink
improved log
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdivyanshjain committed Sep 17, 2022
1 parent b724556 commit c2acd1c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def process_conditions(
}
)
log_list = merge_logs_to_list(event['response']['conditions_results'])
#print(log_list,event['response']['conditions_results'])
if log_list:
success_event_info(
messages("send_success_event_from_module").format(
Expand Down Expand Up @@ -240,15 +239,13 @@ def replace_dependent_values(sub_step, dependent_on_temp_event):


def replace_dependent_response(log,result):
#print(log)
response_dependent = result
if str(log):
key_name = re.findall(
re.compile("response_dependent\\['\\S+\\]"),
log
)
for i in key_name:
#print(i)
try:
key_value = eval(i)
except Exception:
Expand All @@ -264,7 +261,7 @@ def merge_logs_to_list(result,log_list=[]):
log_list.append(result['log'])
else:
merge_logs_to_list(result[i],log_list)
return log_list
return list(set(log_list))


def reverse_and_regex_condition(regex, reverse):
Expand Down

0 comments on commit c2acd1c

Please sign in to comment.