Skip to content

Commit

Permalink
fix a logical error with log sorting/filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLaPiana committed Feb 10, 2024
1 parent b93519d commit ba1f291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn display_logs(number: &i8) {

/// Write the execution results to a log file
pub fn write_logs(results: &JobResults) -> String {
let filename = format!("rox-{}.log.yaml", chrono::Utc::now().to_rfc3339());
let filename = format!("rox-{}.log.yaml", results.execution_time);
let filepath = format!("{}/{}", LOG_DIR, filename);

// Make sure the log directory exists
Expand Down

0 comments on commit ba1f291

Please sign in to comment.