This commit is contained in:
Tibor Bossanyi (Freelancer) 2022-10-05 16:10:35 +02:00
parent 7ddab1da09
commit 3d4a3ab1bb

View File

@ -1,7 +1,7 @@
import os
from firebase_admin import initialize_app
BACKOFFICE_VERSION = "1.38.3"
BACKOFFICE_VERSION = "1.38.4"
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -150,23 +150,25 @@ CKEDITOR_UPLOAD_PATH = MEDIA_URL
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_true': {
'()': 'django.utils.log.RequireDebugTrue',
},
},
'handlers': {
'console': {
'class': 'logging.StreamHandler',
'filters': ['require_debug_true'],
'file': {
'level': 'ERROR',
'class': 'logging.FileHandler',
'filename': '/var/log/django_error.log',
},
'file2': {
'level': 'WARNING',
'class': 'logging.FileHandler',
'filename': '/var/log/django_error.log',
}
},
'loggers': {
'mylogger': {
'handlers': ['console'],
'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'),
'loggers': {
'django': {
'handlers': ['file'],
'level': 'DEBUG',
'propagate': True,
},
},
},
}