From 66d82a44ad8e447afd46b0c956bb335398d8bc98 Mon Sep 17 00:00:00 2001 From: Pavel Kirilin Date: Thu, 27 Jun 2024 08:05:28 +0200 Subject: [PATCH] Logging module renamed to log. Signed-off-by: Pavel Kirilin --- .../{{cookiecutter.project_name}}/{logging.py => log.py} | 0 .../{{cookiecutter.project_name}}/web/application.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/{logging.py => log.py} (100%) diff --git a/fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/logging.py b/fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/log.py similarity index 100% rename from fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/logging.py rename to fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/log.py diff --git a/fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/web/application.py b/fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/web/application.py index 929ddbd6..c55a3e57 100644 --- a/fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/web/application.py +++ b/fastapi_template/template/{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/web/application.py @@ -23,7 +23,7 @@ {%- if cookiecutter.sentry_enabled == "True" %} import sentry_sdk from sentry_sdk.integrations.fastapi import FastApiIntegration -from sentry_sdk.integrations.logging import LoggingIntegration +from sentry_sdk.integrations.log import LoggingIntegration {%- if cookiecutter.orm == "sqlalchemy" %} from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration @@ -32,7 +32,7 @@ {%- endif %} {%- if cookiecutter.enable_loguru == "True" %} -from {{cookiecutter.project_name}}.logging import configure_logging +from {{cookiecutter.project_name}}.log import configure_logging {%- endif %}