Commit 7326a18f by Oleg Marshev

Move logging.

parent a3325ac9
......@@ -2,6 +2,8 @@ import os
import json
import sys
from notesserver.settings.logger import get_logger_config
DEBUG = False
TEMPLATE_DEBUG = False
DISABLE_TOKEN_CHECK = False
......@@ -47,29 +49,7 @@ STATIC_URL = '/static/'
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
}
},
}
LOGGING = get_logger_config()
REST_FRAMEWORK = {
'DEFAULT_PERMISSION_CLASSES': [
......
import yaml
from .common import * # pylint: disable=unused-wildcard-import, wildcard-import
from notesserver.settings.logger import get_logger_config
LOGGING = get_logger_config()
###############################################################################
# Explicitly declare here in case someone changes common.py.
......
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