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:
parent
8eb45f674f
commit
9fb8038166
5 changed files with 36 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue