Fix Logger context bug. (#83)

This commit is contained in:
you-n-g
2024-07-17 18:07:30 +08:00
committed by GitHub
parent 201845f4ad
commit d5214e6cd2
+4 -2
View File
@@ -70,8 +70,10 @@ class RDAgentLog(SingletonBaseClass):
# TODO: It may result in error in mutithreading or co-routine
self._tag = self._tag + tag
yield
self._tag = self._tag[: -len(tag)]
try:
yield
finally:
self._tag = self._tag[: -len(tag)]
def get_pids(self) -> str:
"""