Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
apburnes committed Jun 6, 2024
1 parent ee1513f commit 8cc9c5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions src/log_utils/get_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ def __init__(self, priv_vals, mask=DEFAULT_MASK):

def filter(self, record):
for priv_val in self.priv_vals:
try:
print('FILTER `record.msg`', record.msg, type(record.msg))
record.msg = record.msg.replace(priv_val, self.mask)
except Exception as e:
print('FILTER EXCEPTION', e, '\n', 'priv_val', '\n', priv_val)
pass
record.msg = record.msg.replace(priv_val, self.mask)

if self.INVALID_ACCESS_KEY in record.msg:
record.msg = (
Expand Down
1 change: 0 additions & 1 deletion src/runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def run(logger, command, cwd=None, env=None, shell=False, check=True, node=False

if check:
if p.returncode:
print('BEGOFE CalledProcessError Raised', p.returncode, command)
raise subprocess.CalledProcessError(p.returncode, command)
return output.getvalue()

Expand Down

0 comments on commit 8cc9c5d

Please sign in to comment.