Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a7a1659f0 | ||
|
|
bc23006a34 |
@@ -1,7 +1,7 @@
|
|||||||
# MARK: Project info
|
# MARK: Project info
|
||||||
[project]
|
[project]
|
||||||
name = "corelibs"
|
name = "corelibs"
|
||||||
version = "0.22.3"
|
version = "0.22.4"
|
||||||
description = "Collection of utils for Python scripts"
|
description = "Collection of utils for Python scripts"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
|
|||||||
@@ -283,8 +283,10 @@ class LogParent:
|
|||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _cleanup(self):
|
def cleanup(self):
|
||||||
"""cleanup for any open queues in case we have an abort"""
|
"""
|
||||||
|
cleanup for any open queues in case we have an abort
|
||||||
|
"""
|
||||||
if not self.log_queue:
|
if not self.log_queue:
|
||||||
return
|
return
|
||||||
self.flush()
|
self.flush()
|
||||||
@@ -659,7 +661,6 @@ class Log(LogParent):
|
|||||||
if self.listener is not None:
|
if self.listener is not None:
|
||||||
self.flush()
|
self.flush()
|
||||||
self.listener.stop()
|
self.listener.stop()
|
||||||
self._cleanup()
|
|
||||||
|
|
||||||
# MARK: init main log
|
# MARK: init main log
|
||||||
def __init_log(self, log_name: str) -> None:
|
def __init_log(self, log_name: str) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user