Commit 009faa10 by Oleg Marshev

Fix logging.

parent 004314d5
...@@ -47,6 +47,30 @@ STATIC_URL = '/static/' ...@@ -47,6 +47,30 @@ STATIC_URL = '/static/'
WSGI_APPLICATION = 'notesserver.wsgi.application' WSGI_APPLICATION = 'notesserver.wsgi.application'
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
'stream': sys.stderr,
},
},
'loggers': {
'django': {
'handlers': ['console'],
'level': 'ERROR',
'propagate': False,
},
'elasticsearch.trace': {
'handlers': ['console'],
'level': 'ERROR',
'propagate': False
}
},
}
REST_FRAMEWORK = { REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': [ 'DEFAULT_PERMISSION_CLASSES': [
'notesapi.v1.permissions.HasAccessToken' 'notesapi.v1.permissions.HasAccessToken'
......
from .common import * from .common import *
from notesserver.settings.logger import get_logger_config
DATABASES = { DATABASES = {
'default': { 'default': {
...@@ -12,5 +11,3 @@ DISABLE_TOKEN_CHECK = False ...@@ -12,5 +11,3 @@ DISABLE_TOKEN_CHECK = False
INSTALLED_APPS += ('django_nose',) INSTALLED_APPS += ('django_nose',)
ES_INDEXES = {'default': 'notes_index_test'} ES_INDEXES = {'default': 'notes_index_test'}
LOGGING = get_logger_config()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment