Skip to content

Commit c81d30e

Browse files
committed
Update adafruit_logging.py
Remove some debug statements
1 parent 767fda4 commit c81d30e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

adafruit_logging.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ def __init__(
282282

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

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

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

0 commit comments

Comments
 (0)