From 7ba48a1a40386419bf948c4fa39c6342afe97d60 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 5 Jan 2025 22:08:54 +1000 Subject: [PATCH] Linting fixes --- src/migrations/env.py | 2 +- src/traffcap/core/logging_configuration.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/migrations/env.py b/src/migrations/env.py index 4e85fd0..077a330 100644 --- a/src/migrations/env.py +++ b/src/migrations/env.py @@ -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 diff --git a/src/traffcap/core/logging_configuration.py b/src/traffcap/core/logging_configuration.py index 2e66fb0..0830123 100644 --- a/src/traffcap/core/logging_configuration.py +++ b/src/traffcap/core/logging_configuration.py @@ -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)