Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Centurix committed Jan 5, 2025
1 parent 5332c40 commit 7ba48a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/migrations/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from sqlmodel import SQLModel
from alembic import context
from migrations.url import generate_db_url
from traffcap.model import *
from traffcap.model import * # noqa: F403


config = context.config
Expand Down
8 changes: 4 additions & 4 deletions src/traffcap/core/logging_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@ def log_setup() -> None:
Attach stdio to the logging pipeline
"""
root = logging.getLogger()
root.setLevel(logging.DEBUG)
root.setLevel(logging.INFO)
handler = logging.StreamHandler(sys.stdout)
root.addHandler(handler)

gunicorn_logger = logging.getLogger("gunicorn")
gunicorn_logger.setLevel(logging.DEBUG)
gunicorn_logger.setLevel(logging.ERROR)
gunicorn_handler = logging.StreamHandler(sys.stdout)
gunicorn_logger.addHandler(gunicorn_handler)

access_logger = logging.getLogger("gunicorn.access")
access_logger.setLevel(logging.DEBUG)
access_logger.setLevel(logging.INFO)
access_handler = logging.StreamHandler(sys.stdout)
access_logger.addHandler(access_handler)

sqlalchemy_logger = logging.getLogger("sqlalchemy")
sqlalchemy_logger.setLevel(logging.DEBUG)
sqlalchemy_logger.setLevel(logging.ERROR)
sqlalchemy_handler = logging.StreamHandler(sys.stdout)
sqlalchemy_logger.addHandler(sqlalchemy_handler)

0 comments on commit 7ba48a1

Please sign in to comment.