Skip to content

Commit

Permalink
fix(jssp): truncate log files instead of appending (#423)
Browse files Browse the repository at this point in the history
## Description

For the time being it makes testing ECDataKit much easier and handy.
  • Loading branch information
kkafar authored Aug 25, 2023
1 parent 7996c76 commit 9a61cad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/jssp/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub fn init_logging(log_file: Option<&Path>) -> Result<log4rs::Handle, log::SetL
let config = if let Some(log_file) = log_file {
let csv_appender = FileAppender::builder()
.encoder(Box::new(PatternEncoder::new(&csv_log_pattern)))
.append(false)
.build(log_file)
.unwrap();
config
Expand Down

0 comments on commit 9a61cad

Please sign in to comment.