This commit is contained in:
Tibor Bossanyi (Freelancer) 2022-10-05 15:47:59 +02:00
parent f7e7609bc3
commit 7ddab1da09

View File

@ -1,7 +1,7 @@
import os import os
from firebase_admin import initialize_app from firebase_admin import initialize_app
BACKOFFICE_VERSION = "1.38.2" BACKOFFICE_VERSION = "1.38.3"
# Build paths inside the project like this: os.path.join(BASE_DIR, ...) # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -156,16 +156,15 @@ LOGGING = {
}, },
}, },
'handlers': { 'handlers': {
'file': { 'console': {
'level': 'ERROR', 'class': 'logging.StreamHandler',
'class': 'logging.FileHandler', 'filters': ['require_debug_true'],
'filename': '/var/log/django_error.log', },
}
}, },
'loggers': { 'loggers': {
'django': { 'mylogger': {
'handlers': ['file'], 'handlers': ['console'],
'level': 'DEBUG', 'level': os.getenv('DJANGO_LOG_LEVEL', 'DEBUG'),
'propagate': True, 'propagate': True,
}, },
}, },