diff options
| author | Joey Hess <joey@kitenet.net> | 2014-11-18 15:38:18 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-11-18 15:38:18 -0400 |
| commit | 32dbfd62fb81edad3cd97bbe57ce3302be8ff7d9 (patch) | |
| tree | d9e933136ce4c510bb5fcd1043110730caedcab7 /src/Propellor/CmdLine.hs | |
| parent | 1bb2a2b481867163325fb0f9605b22d4de2b6ec4 (diff) | |
disable always debug
Diffstat (limited to 'src/Propellor/CmdLine.hs')
| -rw-r--r-- | src/Propellor/CmdLine.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Propellor/CmdLine.hs b/src/Propellor/CmdLine.hs index 1aae33fc..2d4ae403 100644 --- a/src/Propellor/CmdLine.hs +++ b/src/Propellor/CmdLine.hs @@ -347,13 +347,13 @@ getRepoUrl = getM get urls checkDebugMode :: IO () checkDebugMode = go =<< getEnv "PROPELLOR_DEBUG" where - go _ = do + go (Just "1") = 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. |
