Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaPoly committed Jun 23, 2023
1 parent 6e94e57 commit 1c1ab07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/mantarray_desktop_app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def main(command_line_args: List[str], object_access_for_testing: Optional[Dict[
try:
# Tanner (5/20/22): not sure if this is actually logging anything since logging isn't configured yet
logger.info(command_line_args)

log_level = logging.INFO
parser = argparse.ArgumentParser()
parser.add_argument(
Expand Down
12 changes: 6 additions & 6 deletions src/mantarray_desktop_app/utils/log_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class SensitiveFormatter(logging.Formatter):

@staticmethod
def _filter(log_msg: str) -> Any:
if "/system_status" in log_msg:
parts = log_msg.split()
status_code_position = parts.index('HTTP/1.1"') + 1
status_code = parts[status_code_position]
return status_code != "200"
elif "/update_settings" not in log_msg:
# if "/system_status" in log_msg:
# parts = log_msg.split()
# status_code_position = parts.index('HTTP/1.1"') + 1
# status_code = parts[status_code_position]
# return status_code != "200"
if "/update_settings" not in log_msg:
return re.sub(
r"(.*set_mantarray_nickname\?nickname=)(.*)( HTTP.*)",
lambda match_obj: match_obj[1] + get_redacted_string(len(match_obj[2])) + match_obj[3],
Expand Down

0 comments on commit 1c1ab07

Please sign in to comment.