feat(tui): expand App state with file loading and scroll
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user