aboutsummaryrefslogtreecommitdiffstats
path: root/src/VeriFuzz/General.hs
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2019-02-03 01:31:04 +0000
committerYann Herklotz <ymherklotz@gmail.com>2019-02-03 01:31:04 +0000
commit58590e754c90d46b6ef0c5746d0b7e70a0aa13b4 (patch)
tree54588e468d807b20d87b6b229a9a574b451053ab /src/VeriFuzz/General.hs
parentad5d8bced5aec1e887c44e7e3c26a9b74c5a3ba5 (diff)
downloadverismith-58590e754c90d46b6ef0c5746d0b7e70a0aa13b4.tar.gz
verismith-58590e754c90d46b6ef0c5746d0b7e70a0aa13b4.zip
Fix logging
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