diff --git a/.gitignore b/.gitignore index 1d83363..99984eb 100644 --- a/.gitignore +++ b/.gitignore @@ -95,3 +95,6 @@ venv.bak/ # Pycharm .idea/ + +# VSCode +.devcontainer/ diff --git a/app/main/settings.py b/app/main/settings.py index fb7c0f2..2aa7276 100644 --- a/app/main/settings.py +++ b/app/main/settings.py @@ -11,7 +11,6 @@ """ import os -from typing import Any # Export modules to Azure Application Insights from azure.monitor.opentelemetry.exporter import AzureMonitorLogExporter, AzureMonitorTraceExporter @@ -39,7 +38,7 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = os.getenv('DJANGO_DEBUG', False) in TRUE_VALUES -LOGGING_LEVEL: str = os.getenv('LOGGING_LEVEL', 'INFO') +LOGGING_LEVEL = os.getenv('LOGGING_LEVEL', 'INFO') AZURE_APPLICATION_INSIGHTS_CONNECTION_STRING = os.getenv('AZURE_APPLICATION_INSIGHTS_CONNECTION_STRING', None) @@ -247,7 +246,7 @@ # Per default log to console -LOGGING_HANDLERS: dict[str, dict[str, Any]] = { +LOGGING_HANDLERS = { 'console': { 'class': 'logging.StreamHandler', }, @@ -302,7 +301,7 @@ def __init__(self): Psycopg2Instrumentor().instrument(tracer_provider=tracer_provider, skip_dep_check=True) DjangoInstrumentor().instrument(tracer_provider=tracer_provider, response_hook=response_hook) -LOGGING: dict[str, Any] = { +LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': {