We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 767fda4 commit c81d30eCopy full SHA for c81d30e
adafruit_logging.py
@@ -282,7 +282,6 @@ def __init__(
282
283
# Open the file and save the handle to self.stream
284
super().__init__(self._LogFileName, mode=self._WriteMode)
285
- # TODO: What do we do if the log file already exsists?
286
287
def doRollover(self) -> None:
288
"""Roll over the log files. This should not need to be called directly"""
@@ -316,8 +315,6 @@ def doRollover(self) -> None:
316
315
317
def GetLogSize(self) -> int:
318
"""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.
321
try:
322
self.stream.flush() # We need to call this or the file size is always zero.
323
LogFileSize = os.stat(self._LogFileName)[6]
0 commit comments