Adaption to new logging
This commit is contained in:
parent
460a086149
commit
2fad968a8d
@ -32,8 +32,11 @@ import select
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
logger_name = 'KEYBOARD'
|
try:
|
||||||
logger = logging.getLogger(logger_name)
|
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).
|
__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('_', '\_')
|
For more Information read the sphinx documentation.""" % __name__.replace('_', '\_')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user