Logger creation simplified

This commit is contained in:
Dirk Alders 2024-10-08 22:30:16 +02:00
parent e093c48e91
commit 997594e371
2 changed files with 2 additions and 10 deletions

View File

@ -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'

View File

@ -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):