Adaption to new logging

This commit is contained in:
Dirk Alders 2021-01-21 18:55:11 +01:00
parent 63e9af4d65
commit be03b653eb
2 changed files with 10 additions and 2 deletions

View File

@ -2,7 +2,11 @@ import logging
from .models import Task, Project, Comment, TASKSTATE_CHOICES, TASKS_IN_WORK, PROJECTS_IN_WORK, PRIO_CHOICES from .models import Task, Project, Comment, TASKSTATE_CHOICES, TASKS_IN_WORK, PROJECTS_IN_WORK, PRIO_CHOICES
logger = logging.getLogger('ACC') try:
from config import APP_NAME as ROOT_LOGGER_NAME
except ImportError:
ROOT_LOGGER_NAME = 'root'
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
def read_attachment(request, rel_path): def read_attachment(request, rel_path):

View File

@ -9,7 +9,11 @@ from whoosh.fields import Schema, ID, TEXT, NUMERIC, DATETIME, BOOLEAN
from whoosh.qparser.dateparse import DateParserPlugin from whoosh.qparser.dateparse import DateParserPlugin
from whoosh import index, qparser from whoosh import index, qparser
logger = logging.getLogger("WHOOSH") try:
from config import APP_NAME as ROOT_LOGGER_NAME
except ImportError:
ROOT_LOGGER_NAME = 'root'
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
SEARCH_MY_OPEN_TASKS = 1 SEARCH_MY_OPEN_TASKS = 1
SEARCH_LOST_SOULS = 2 SEARCH_LOST_SOULS = 2