Adaption to new logging
This commit is contained in:
parent
e30211c70c
commit
37c050bdbf
@ -31,8 +31,11 @@ import logging
|
||||
import serial
|
||||
import time
|
||||
|
||||
logger_name = 'SERIAL_INTERFACE'
|
||||
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__)
|
||||
|
||||
|
||||
class serial_interface(object):
|
||||
|
Loading…
x
Reference in New Issue
Block a user