Logger creation simplified
This commit is contained in:
parent
e093c48e91
commit
997594e371
@ -8,11 +8,7 @@ from mycreole import url_upload
|
||||
from mycreole import parameter
|
||||
from themes import color_icon_url
|
||||
|
||||
try:
|
||||
from config import APP_NAME as ROOT_LOGGER_NAME
|
||||
except ImportError:
|
||||
ROOT_LOGGER_NAME = 'root'
|
||||
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
||||
logger = logging.getLogger(settings.ROOT_LOGGER_NAME).getChild(__name__)
|
||||
|
||||
NEW_ATTACHMENT_UID = 'new_attachment'
|
||||
|
||||
|
6
views.py
6
views.py
@ -14,11 +14,7 @@ import stringtools
|
||||
import themes
|
||||
from django.contrib import messages
|
||||
|
||||
try:
|
||||
from config import APP_NAME as ROOT_LOGGER_NAME
|
||||
except ImportError:
|
||||
ROOT_LOGGER_NAME = 'root'
|
||||
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
|
||||
logger = logging.getLogger(settings.ROOT_LOGGER_NAME).getChild(__name__)
|
||||
|
||||
|
||||
def get_next(request):
|
||||
|
Loading…
x
Reference in New Issue
Block a user