Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
feifei-111 committed Oct 8, 2023
1 parent c5197ff commit e2effa4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sot/utils/code_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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

0 comments on commit e2effa4

Please sign in to comment.