Make it black

This commit is contained in:
Joel Bradshaw 2022-01-09 23:53:23 -08:00
parent 085dd24a62
commit 5cf1d8a30a
2 changed files with 16 additions and 15 deletions

View file

@ -106,31 +106,31 @@ TEMPLATES = [
},
]
LOG_LEVEL = env('LOG_LEVEL', 'INFO').upper()
LOG_LEVEL = env("LOG_LEVEL", "INFO").upper()
# Override aspects of the default handler to our taste
# See https://docs.djangoproject.com/en/3.2/topics/logging/#default-logging-configuration
# for a reference to the defaults we're overriding
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
"version": 1,
"disable_existing_loggers": False,
"handlers": {
# Overrides the default handler, which does not log in prod
'console': {
'level': LOG_LEVEL,
'class': 'logging.StreamHandler',
"console": {
"level": LOG_LEVEL,
"class": "logging.StreamHandler",
},
},
'loggers': {
"loggers": {
# Override the log level for the default logger
'django': {
'handlers': ['console', 'mail_admins'],
'level': LOG_LEVEL,
"django": {
"handlers": ["console", "mail_admins"],
"level": LOG_LEVEL,
},
# Add a bookwyrm-specific logger
'bookwyrm': {
'handlers': ['console'],
'level': LOG_LEVEL,
}
"bookwyrm": {
"handlers": ["console"],
"level": LOG_LEVEL,
},
},
}

View file

@ -19,6 +19,7 @@ from bookwyrm.utils import regex
logger = logging.getLogger(__name__)
@method_decorator(csrf_exempt, name="dispatch")
# pylint: disable=no-self-use
class Inbox(View):