aboutsummaryrefslogtreecommitdiffstats
path: root/src/VeriFuzz/General.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/VeriFuzz/General.hs')
-rw-r--r--src/VeriFuzz/General.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/VeriFuzz/General.hs b/src/VeriFuzz/General.hs
index 37a8f90..9b8f5c5 100644
--- a/src/VeriFuzz/General.hs
+++ b/src/VeriFuzz/General.hs
@@ -73,4 +73,5 @@ logger :: FilePath -> Text -> Sh a -> Sh a
logger fp name =
log_stderr_with (l "_log.stderr.txt") . log_stdout_with (l "_log.txt")
where
- l s = writeFile (T.unpack (toTextIgnore $ fp </> fromText name) <> s) . T.unpack
+ l s t = appendFile (file s) (T.unpack t) >> appendFile (file s) "\n"
+ file s = T.unpack (toTextIgnore $ fp </> fromText name) <> s