logger updated
This commit is contained in:
parent
98560f673c
commit
90d17a2337
|
@ -70,6 +70,7 @@ class Logger:
|
||||||
rh.setLevel(logging.DEBUG)
|
rh.setLevel(logging.DEBUG)
|
||||||
cls.__handlers.append(rh)
|
cls.__handlers.append(rh)
|
||||||
root.addHandler(rh)
|
root.addHandler(rh)
|
||||||
|
root.info("-" * 100)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def clear_handlers(cls):
|
def clear_handlers(cls):
|
||||||
|
@ -95,8 +96,6 @@ class Logger:
|
||||||
@classmethod
|
@classmethod
|
||||||
def close(cls):
|
def close(cls):
|
||||||
if cls.__setup and cls.__thread is not None:
|
if cls.__setup and cls.__thread is not None:
|
||||||
root = logging.getLogger("listener")
|
|
||||||
root.info("-" * 100)
|
|
||||||
cls.__queue.put(None)
|
cls.__queue.put(None)
|
||||||
cls.__thread.join()
|
cls.__thread.join()
|
||||||
# cls.__manager.close()
|
# cls.__manager.close()
|
||||||
|
|
Loading…
Reference in New Issue