Skip to content

Commit

Permalink
add .devcontainer to gitignore and remove typings
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonavic committed Sep 25, 2024
1 parent ad49e43 commit ce41e26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,6 @@ venv.bak/

# Pycharm
.idea/

# VSCode
.devcontainer/
7 changes: 3 additions & 4 deletions app/main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"""

import os
from typing import Any

# Export modules to Azure Application Insights
from azure.monitor.opentelemetry.exporter import AzureMonitorLogExporter, AzureMonitorTraceExporter
Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -247,7 +246,7 @@


# Per default log to console
LOGGING_HANDLERS: dict[str, dict[str, Any]] = {
LOGGING_HANDLERS = {
'console': {
'class': 'logging.StreamHandler',
},
Expand Down Expand Up @@ -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': {
Expand Down

0 comments on commit ce41e26

Please sign in to comment.