diff --git a/coapthon/client/coap.py b/coapthon/client/coap.py index a9badd8..471282e 100644 --- a/coapthon/client/coap.py +++ b/coapthon/client/coap.py @@ -14,18 +14,13 @@ from coapthon.messages.message import Message from coapthon.messages.request import Request from coapthon.messages.response import Response from coapthon.serializer import Serializer -from coapthon.utils import create_logging import collections __author__ = 'Giacomo Tanganelli' -if not os.path.isfile("logging.conf"): - create_logging() - logger = logging.getLogger(__name__) -logging.config.fileConfig("logging.conf", disable_existing_loggers=False) class CoAP(object): diff --git a/coapthon/forward_proxy/coap.py b/coapthon/forward_proxy/coap.py index 5b42ddb..b448cca 100644 --- a/coapthon/forward_proxy/coap.py +++ b/coapthon/forward_proxy/coap.py @@ -17,15 +17,12 @@ from coapthon.messages.message import Message from coapthon.messages.request import Request from coapthon.resources.resource import Resource from coapthon.serializer import Serializer -from coapthon.utils import Tree, create_logging +from coapthon.utils import Tree __author__ = 'Giacomo Tanganelli' -if not os.path.isfile("logging.conf"): - create_logging() logger = logging.getLogger(__name__) -logging.config.fileConfig("logging.conf", disable_existing_loggers=False) class CoAP(object): diff --git a/coapthon/reverse_proxy/coap.py b/coapthon/reverse_proxy/coap.py index 50db0d2..61ba364 100644 --- a/coapthon/reverse_proxy/coap.py +++ b/coapthon/reverse_proxy/coap.py @@ -21,16 +21,12 @@ from coapthon.messages.request import Request from coapthon.resources.remoteResource import RemoteResource from coapthon.resources.resource import Resource from coapthon.serializer import Serializer -from coapthon.utils import Tree, create_logging +from coapthon.utils import Tree __author__ = 'Giacomo Tanganelli' -if not os.path.isfile("logging.conf"): - create_logging() - logger = logging.getLogger(__name__) -logging.config.fileConfig("logging.conf", disable_existing_loggers=False) class CoAP(object): diff --git a/coapthon/server/coap.py b/coapthon/server/coap.py index e2b4e5e..5a52102 100644 --- a/coapthon/server/coap.py +++ b/coapthon/server/coap.py @@ -17,18 +17,13 @@ from coapthon.messages.response import Response from coapthon.resources.resource import Resource from coapthon.serializer import Serializer from coapthon.utils import Tree -from coapthon.utils import create_logging import collections __author__ = 'Giacomo Tanganelli' -if not os.path.isfile("logging.conf"): - create_logging() - logger = logging.getLogger(__name__) -logging.config.fileConfig("logging.conf", disable_existing_loggers=False) class CoAP(object):