Skip to content

Commit

Permalink
Include original log file in outputs (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezyang authored Jul 11, 2024
1 parent 5787011 commit 7887ade
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::ffi::{OsStr, OsString};
use indicatif::{MultiProgress, ProgressBar, ProgressStyle};
use regex::Regex;
use std::cell::RefCell;
use std::fs::File;
use std::fs::{self, File};
use std::io::{self, BufRead};
use std::path::PathBuf;
use std::time::Instant;
Expand Down Expand Up @@ -465,6 +465,8 @@ pub fn parse_path(path: &PathBuf, config: ParseConfig) -> anyhow::Result<ParseOu
tt.render("index.html", &index_context)?,
));

output.push((PathBuf::from("raw.log"), fs::read_to_string(path)?));

// other_rank is included here because you should only have logs from one rank when
// configured properly
if strict
Expand Down

0 comments on commit 7887ade

Please sign in to comment.