Skip to content

Commit

Permalink
fix: reorder import statement for Logger in timer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
a5chin committed Jan 24, 2025
1 parent 9c572bb commit d3630cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/trace/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ def __enter__(self) -> None:

def __exit__(self, *exc: object) -> None:
"""Run when exit ContextManager or Decoraotr."""
from tools import Logger

self.end = time.time()

from tools import Logger

logger = Logger(self.name)
logger.debug("executed in %f ms", self._duration * 1_000)

Expand Down

0 comments on commit d3630cd

Please sign in to comment.