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