summaryrefslogtreecommitdiffhomepage
path: root/Server.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-04-22 15:24:59 -0400
committerJoey Hess <joeyh@joeyh.name>2017-04-22 15:24:59 -0400
commit4ec39a666bd9feff44ea75851f6da06097f30d0c (patch)
treec2343f341635c9832a1f6c9d71baba272d719288 /Server.hs
parent3adfdf1ae27cd4b6419ce5be14ffb3712339065a (diff)
downloaddebug-me-4ec39a666bd9feff44ea75851f6da06097f30d0c.tar.gz
re-open log file in append mode
Oops, it got truncated otherwise..
Diffstat (limited to 'Server.hs')
-rw-r--r--Server.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Server.hs b/Server.hs
index c1a302a..dc23643 100644
--- a/Server.hs
+++ b/Server.hs
@@ -72,7 +72,7 @@ preventWriteWhile (Session _ loghv loglock) o sid a = bracket setup cleanup go
return ll
cleanup ll = do
let f = sessionLogFile (serverDirectory o) sid
- h <- openFile f WriteMode
+ h <- openFile f AppendMode
atomically $ do
putTMVar loglock ll
writeTVar loghv h