Skip to content

Commit

Permalink
minor: add search log var info logs
Browse files Browse the repository at this point in the history
  • Loading branch information
normal-wls committed Oct 17, 2023
1 parent 435a739 commit a06e3e1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def get_sops_var_dict_from_log_text(log_text, service_logger):

sops_key_val_list = re.findall(reg, log_text, re.DOTALL)
sops_key_val_list.extend(re.findall(excape_reg, log_text, re.DOTALL))
service_logger.info(f"search log var with sops key val list: {sops_key_val_list}")
if len(sops_key_val_list) == 0:
continue
for sops_key_val in sops_key_val_list:
Expand All @@ -93,6 +94,7 @@ def get_sops_var_dict_from_log_text(log_text, service_logger):
if len(sops_key) == 0:
continue
sops_var_dict.update({sops_key: sops_val})
service_logger.info(f"search log var result: {sops_var_dict}")
return sops_var_dict


Expand Down

0 comments on commit a06e3e1

Please sign in to comment.