Adaption to new logging

This commit is contained in:
Dirk Alders 2020-12-22 08:00:08 +01:00
parent 460a086149
commit 2fad968a8d

View File

@ -32,8 +32,11 @@ import select
import sys
import time
logger_name = 'KEYBOARD'
logger = logging.getLogger(logger_name)
try:
from config import APP_NAME as ROOT_LOGGER_NAME
except ImportError:
ROOT_LOGGER_NAME = 'root'
logger = logging.getLogger(ROOT_LOGGER_NAME).getChild(__name__)
__DESCRIPTION__ = """The Module {\\tt %s} is designed to fetch data from a keyboatd (e.g. RFID-Reader).
For more Information read the sphinx documentation.""" % __name__.replace('_', '\_')