LogReader: remove commaCarSegments selector (#35750)

* a source should not be a readmode... and readmode should be logtype

* fix that

* fixup
This commit is contained in:
Shane Smiskol
2025-07-18 02:17:11 -07:00
committed by GitHub
parent 862a816215
commit b50b351b15
6 changed files with 12 additions and 15 deletions
-4
View File
@@ -96,7 +96,6 @@ class _LogFileReader:
class ReadMode(enum.StrEnum):
RLOG = "r" # only read rlogs
QLOG = "q" # only read qlogs
SANITIZED = "s" # read from the commaCarSegments database
AUTO = "a" # default to rlogs, fallback to qlogs
AUTO_INTERACTIVE = "i" # default to rlogs, fallback to qlogs with a prompt from the user
@@ -216,9 +215,6 @@ def check_source(source: Source, *args) -> list[LogPath]:
def auto_source(sr: SegmentRange, sources: list[Source], mode: ReadMode = ReadMode.RLOG) -> list[LogPath]:
if mode == ReadMode.SANITIZED:
return comma_car_segments_source(sr, mode)
exceptions = {}
# for automatic fallback modes, auto_source needs to first check if rlogs exist for any source