Skip to content

Commit

Permalink
fix console log overflow issue (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Juice-XIJ authored Dec 23, 2022
1 parent c70438c commit 8667301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def emit(self, record: logging.LogRecord):
self.text.insert('end', msg + '\n', record.levelname)
self.text.see('end')
if self.num_lines() > self.line_check:
self.text.delete(1.0, self.line_check - self.line_limitation)
self.text.delete(1.0, float(min(2, self.line_check - self.line_limitation)))


class Logger:
Expand Down

0 comments on commit 8667301

Please sign in to comment.