Adaption to new logging
This commit is contained in:
parent
e9c6321772
commit
cdc9912f3d
@ -11,7 +11,12 @@ from rpi_envsens.dht import dht_22
|
||||
from rpi_envsens.bmp import bmp_180
|
||||
import helpers
|
||||
|
||||
logger = logging.getLogger('APP')
|
||||
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 my_base_protocol_tcp(socket_protocol.pure_json_protocol):
|
||||
|
Loading…
x
Reference in New Issue
Block a user