From 89c188fac37c20c40b0a9dabeb35403cfa4e4f52 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 17 Jun 2014 19:10:51 -0400 Subject: 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). --- Utility/LogFile.hs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Utility') diff --git a/Utility/LogFile.hs b/Utility/LogFile.hs index e84b72b2e..e4f90d418 100644 --- a/Utility/LogFile.hs +++ b/Utility/LogFile.hs @@ -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 -- cgit v1.2.3