temporarily always debug

This commit is contained in:
Joey Hess 2014-11-18 15:34:58 -04:00
parent 6116f0af24
commit d07edfdbeb
1 changed files with 2 additions and 3 deletions

View File

@ -349,14 +349,13 @@ getRepoUrl = getM get urls
checkDebugMode :: IO ()
checkDebugMode = go =<< getEnv "PROPELLOR_DEBUG"
where
go (Just s)
| s == "1" = do
go _ = do
f <- setFormatter
<$> streamHandler stderr DEBUG
<*> pure (simpleLogFormatter "[$time] $msg")
updateGlobalLogger rootLoggerName $
setLevel DEBUG . setHandlers [f]
go _ = noop
-- go _ = noop
-- Parameters can be passed to both ssh and scp, to enable a ssh connection
-- caching socket.