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 929ddbd..c55a3e5 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 %}