Enable backend logging for production

Revert "Enable backend logging for production"

This reverts commit c355cd4c2c2ea4874307ecf08dff8d33bb1f707a.

Fix backend logging
This commit is contained in:
IRBorisov 2024-02-25 21:16:56 +03:00
parent 27f346715e
commit 9d04a4108b

View File

@ -165,10 +165,10 @@ SPECTACULAR_SETTINGS = {
'DISABLE_ERRORS_AND_WARNINGS': False,
"SWAGGER_UI_SETTINGS": {
"deepLinking": True,
"persistAuthorization": True,
"withCredentials": True
'SWAGGER_UI_SETTINGS': {
'deepLinking': True,
'persistAuthorization': True,
'withCredentials': True
}
}
@ -206,3 +206,18 @@ USE_TZ = True
# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'class': 'logging.StreamHandler',
},
},
'root': {
'handlers': ['console'],
'level': 'DEBUG',
},
}