Skip to content

Commit

Permalink
missing docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone committed Dec 2, 2024
1 parent 020becf commit 4fe0884
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def parse_kwargs():


async def setup_database(results_path, table_name):
"""Setup the SQLite database."""
# pylint: disable=import-outside-toplevel
import os # noqa
import aiosqlite
Expand Down Expand Up @@ -261,6 +262,7 @@ class AuthTokenFilter(logging.Formatter):
"""Custom logging formatter to filter auth tokens."""

def format(self, record):
"""Format the log record."""
original_message = super().format(record)
cleaned_message = AUTH_TOKEN_FILTER.sub(r"\1********", original_message)
return cleaned_message
Expand Down

0 comments on commit 4fe0884

Please sign in to comment.