Cambiados logers porunos mas simples
This commit is contained in:
@@ -116,7 +116,6 @@ REST_FRAMEWORK = {
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
# Internationalization
|
||||
# https://docs.djangoproject.com/en/3.0/topics/i18n/
|
||||
|
||||
@@ -131,39 +130,27 @@ USE_TZ = True
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
LOGGING_LEVEL = 'DEBUG'
|
||||
LOGGING = {
|
||||
"version": 1,
|
||||
"disable_existing_loggers": False,
|
||||
"formatters": {
|
||||
"coloredlogs": {
|
||||
"()": "coloredlogs.ColoredFormatter",
|
||||
"fmt": "[%(asctime)s] %(name)s %(levelname)s %(message)s",
|
||||
'version': 1,
|
||||
'disable_existing_loggers': False,
|
||||
'formatters': {
|
||||
'base': {'format': '[{levelname}]\t({name}): {message}', 'style': '{'}
|
||||
|
||||
},
|
||||
'handlers': {
|
||||
'console': {
|
||||
'class': 'logging.StreamHandler',
|
||||
'formatter': 'base'
|
||||
},
|
||||
},
|
||||
"handlers": {
|
||||
"console": {
|
||||
"class": "logging.StreamHandler",
|
||||
"level": LOGGING_LEVEL,
|
||||
"formatter": "coloredlogs",
|
||||
},
|
||||
'root': {
|
||||
'handlers': ['console'],
|
||||
'level': 'DEBUG',
|
||||
},
|
||||
"filters": {
|
||||
"hostname": {
|
||||
"()": "coloredlogs.HostNameFilter",
|
||||
},
|
||||
},
|
||||
"loggers": {
|
||||
"": {
|
||||
"handlers": ["console"],
|
||||
"level": LOGGING_LEVEL
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
CUSTOM_CACHE = {
|
||||
'enabled': True
|
||||
'enabled': True
|
||||
}
|
||||
|
||||
LOGIN_URL = '/auth/login/'
|
||||
|
||||
Reference in New Issue
Block a user