diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-04-22 15:24:59 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-04-22 15:24:59 -0400 |
commit | 4ec39a666bd9feff44ea75851f6da06097f30d0c (patch) | |
tree | c2343f341635c9832a1f6c9d71baba272d719288 /Server.hs | |
parent | 3adfdf1ae27cd4b6419ce5be14ffb3712339065a (diff) | |
download | debug-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.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |