feat(tui): expand App state with file loading and scroll

This commit is contained in:
dailz
2026-04-10 23:28:23 +08:00
parent 37bebc1a26
commit 555ffc0836
5 changed files with 554 additions and 14 deletions

View File

@@ -26,7 +26,7 @@ pub fn parse_line(line: &str) -> Option<LogEntry> {
.iter()
.find_map(|key| fields.remove(*key))
.and_then(|v| v.as_str().map(String::from))
.map(|s| s.parse::<LogLevel>().unwrap());
.map(|s| s.parse::<LogLevel>().unwrap_or_else(|e| match e {}));
Some(LogEntry {
line_number: 0,