|
|
@ -1,5 +1,6 @@
|
|
|
|
use std::ops::Range;
|
|
|
|
use std::ops::Range;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use ansi_to_html::convert_escaped;
|
|
|
|
use serde_json::{Map, Value};
|
|
|
|
use serde_json::{Map, Value};
|
|
|
|
|
|
|
|
|
|
|
|
type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
|
|
|
|
type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
|
|
|
@ -76,6 +77,7 @@ pub fn parse_log(raw: &Vec<u8>) -> Result<Value> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let text: String = String::from_utf8_lossy(&text_chunk).into();
|
|
|
|
let text: String = String::from_utf8_lossy(&text_chunk).into();
|
|
|
|
|
|
|
|
let text: String = convert_escaped(&text)?;
|
|
|
|
|
|
|
|
|
|
|
|
let mut bm: Map<String, Value> = Map::new();
|
|
|
|
let mut bm: Map<String, Value> = Map::new();
|
|
|
|
bm.insert("delta".into(), delta.into());
|
|
|
|
bm.insert("delta".into(), delta.into());
|
|
|
|