log pandora errors too

This commit is contained in:
j 2021-11-16 12:04:52 +00:00
parent d1c157ffb4
commit fa42aa4810
3 changed files with 10 additions and 5 deletions

View file

@ -43,7 +43,7 @@ from user.utils import update_groups
from user.models import Group from user.models import Group
import archive.models import archive.models
logger = logging.getLogger(__name__) logger = logging.getLogger('pandora.' + __name__)
User = get_user_model() User = get_user_model()

View file

@ -17,7 +17,7 @@ from app.utils import limit_rate
from taskqueue.models import Task from taskqueue.models import Task
logger = logging.getLogger(__name__) logger = logging.getLogger('pandora.' + __name__)
@periodic_task(run_every=timedelta(days=1), queue='encoding') @periodic_task(run_every=timedelta(days=1), queue='encoding')

View file

@ -161,13 +161,18 @@ LOGGING = {
'errors': { 'errors': {
'level': 'ERROR', 'level': 'ERROR',
'class': 'log.utils.ErrorHandler' 'class': 'log.utils.ErrorHandler'
} },
}, },
'loggers': { 'loggers': {
'django.request': { 'django': {
'handlers': ['errors'], 'handlers': ['errors'],
'level': 'ERROR', 'level': 'ERROR',
'propagate': True, 'propagate': False,
},
'pandora': {
'handlers': ['errors'],
'level': 'ERROR',
'propagate': False,
}, },
} }
} }