Adaption to new logging

This commit is contained in:
Dirk Alders 2020-12-21 01:29:28 +01:00
parent d9bdc909e9
commit 576494b200

View File

@ -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):