Windows: Assistant now logs to daemon.log.

Yes, this means that git annex webapp on windows execs git-annex, which
execs itself to set env, and the execs itself again to redirect logs.

This is disgusting. This is Windows(TM).
This commit is contained in:
Joey Hess 2014-06-17 19:10:51 -04:00
parent 8eb45f674f
commit 9fb8038166
5 changed files with 36 additions and 21 deletions

View file

@ -15,13 +15,10 @@ import Common
import System.Posix.Types
#endif
#ifndef mingw32_HOST_OS
openLog :: FilePath -> IO Fd
openLog :: FilePath -> IO Handle
openLog logfile = do
rotateLog logfile
openFd logfile WriteOnly (Just stdFileMode)
defaultFileFlags { append = True }
#endif
openFile logfile AppendMode
rotateLog :: FilePath -> IO ()
rotateLog logfile = go 0