Commit efc1e774 by Oleksandr Barabash

Log class was duplicating Console lines. fixed now

parent 508863e9
...@@ -47,12 +47,10 @@ class Log(object): ...@@ -47,12 +47,10 @@ class Log(object):
LEVEL = logging.DEBUG LEVEL = logging.DEBUG
handler = logging.StreamHandler()
handler.setLevel(LEVEL)
logger = logging.getLogger() logger = logging.getLogger()
logger.setLevel(LEVEL) logging_config = {"format": "%(asctime)-23s %(levelname)8s: %(message)s",
logger.addHandler(handler) "level": logging.DEBUG}
logging.basicConfig(**logging_config)
@staticmethod @staticmethod
def get_or_create_logger(tag): def get_or_create_logger(tag):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment