From e2effa4410430470431eeffc748bf769598f73bb Mon Sep 17 00:00:00 2001 From: feifei-111 <2364819892@qq.com> Date: Sun, 8 Oct 2023 07:49:45 +0000 Subject: [PATCH] update --- sot/utils/code_status.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sot/utils/code_status.py b/sot/utils/code_status.py index 556fd9be..fe65d512 100644 --- a/sot/utils/code_status.py +++ b/sot/utils/code_status.py @@ -59,7 +59,7 @@ def visit(self, code): info = self.code_map[code] info.counter += 1 if info.counter >= 10: - log(3, f"[CodeStatus] Switch state to WITHOUT_GRAPH for {code}") + log(3, f"[CodeStatus] Switch state to WITHOUT_GRAPH for {code}\n") info.state = CodeState.WITHOUT_GRAPH def trace_back_frames(self): @@ -71,6 +71,7 @@ def trace_back_frames(self): info = self.code_map[code] if info.state != CodeState.WITH_GRAPH: log( - 3, f"[CodeStatus] Switch state to WITH_GRAPH for {code}" + 3, + f"[CodeStatus] Switch state to WITH_GRAPH for {code}\n", ) info.state = CodeState.WITH_GRAPH