mirror of
https://codeberg.org/icewind/logsmash.git
synced 2026-06-04 02:24:11 +02:00
only test with 29 data for now
This commit is contained in:
parent
3af655c17c
commit
28c93c935c
10 changed files with 8596 additions and 94362 deletions
|
|
@ -73,7 +73,7 @@ pub fn extract_dir<W: Write>(root: &str, mut output: W, bake: bool) -> Result<()
|
|||
continue;
|
||||
}
|
||||
for log_item in extractor.extract(rel_path, &code_buff) {
|
||||
if !first_line {
|
||||
if !bake && !first_line {
|
||||
writeln!(&mut output, ",").ok();
|
||||
}
|
||||
first_line = false;
|
||||
|
|
@ -81,7 +81,7 @@ pub fn extract_dir<W: Write>(root: &str, mut output: W, bake: bool) -> Result<()
|
|||
if bake {
|
||||
bake_buff.clear();
|
||||
bake_statement(&mut bake_buff, &log_item);
|
||||
writeln!(&mut output, "{bake_buff}").ok();
|
||||
writeln!(&mut output, "{bake_buff},").ok();
|
||||
} else {
|
||||
let _ = serde_json::to_writer(&mut output, &log_item);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue