Skip to content

Commit

Permalink
Update adafruit_logging.py
Browse files Browse the repository at this point in the history
Remove some debug statements
  • Loading branch information
ilikecake committed May 17, 2024
1 parent 767fda4 commit c81d30e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions adafruit_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ def __init__(

# Open the file and save the handle to self.stream
super().__init__(self._LogFileName, mode=self._WriteMode)
# TODO: What do we do if the log file already exsists?

def doRollover(self) -> None:
"""Roll over the log files. This should not need to be called directly"""
Expand Down Expand Up @@ -316,8 +315,6 @@ def doRollover(self) -> None:

def GetLogSize(self) -> int:
"""Check the size of the log file."""
# TODO: Is this needed? I am catching the case where the file does not exsist,
# but I don't know if that is a realistic case anymore.
try:
self.stream.flush() # We need to call this or the file size is always zero.
LogFileSize = os.stat(self._LogFileName)[6]
Expand Down

0 comments on commit c81d30e

Please sign in to comment.