Skip to content

Commit

Permalink
xirvik/commands/util: simplify line
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsh committed Sep 14, 2021
1 parent 16cd859 commit 25e7dab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xirvik/commands/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ def emit(self, record: logging.LogRecord) -> None:
except ValueError:
level = record.levelno
# Find caller from where originated the logged message
frame: Optional[FrameType]
frame = logging.currentframe()
frame: Optional[FrameType] = logging.currentframe()
depth = 2
while frame and frame.f_code.co_filename == logging.__file__:
frame = frame.f_back
Expand Down

0 comments on commit 25e7dab

Please sign in to comment.