Adaption to new logging
This commit is contained in:
parent
d9bdc909e9
commit
576494b200
@ -33,8 +33,12 @@ import logging
|
||||
import socket
|
||||
import time
|
||||
|
||||
logger_name = 'TCP_SOCKET'
|
||||
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 tcp_base(object):
|
||||
|
Loading…
x
Reference in New Issue
Block a user