Skip to content

Commit

Permalink
emit log message when saving reproducers
Browse files Browse the repository at this point in the history
  • Loading branch information
samalws-tob committed Jun 12, 2024
1 parent 8347ad9 commit e50881b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Echidna/Output/Corpus.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ saveTxs dir = mapM_ saveTxSeq where
saveTxSeq txSeq = do
createDirectoryIfMissing True dir
let file = dir </> (show . abs . hash . show) txSeq <.> "txt"
putStrLn ("Saving reproducer to " ++ file)
unlessM (doesFileExist file) $ encodeFile file (toJSON txSeq)

loadTxs :: FilePath -> IO [(FilePath, [Tx])]
Expand Down

0 comments on commit e50881b

Please sign in to comment.