summaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-17 14:40:05 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-17 14:40:05 -0400
commit182526ff68b1ca68952b4dbd32121e46d4a80e85 (patch)
treeecd7097dca179776a5a92e0da11e7bebe01c6d37 /Utility
parent1d5582091e9df550a8b42d0a69bada1d15a1825e (diff)
add debugging
Diffstat (limited to 'Utility')
-rw-r--r--Utility/Misc.hs2
-rw-r--r--Utility/SafeCommand.hs4
2 files changed, 3 insertions, 3 deletions
diff --git a/Utility/Misc.hs b/Utility/Misc.hs
index 3b359139b..e11586467 100644
--- a/Utility/Misc.hs
+++ b/Utility/Misc.hs
@@ -33,7 +33,7 @@ separate c l = unbreak $ break c l
| otherwise = (a, tail b)
{- Breaks out the first line. -}
-firstLine :: String-> String
+firstLine :: String -> String
firstLine = takeWhile (/= '\n')
{- Splits a list into segments that are delimited by items matching
diff --git a/Utility/SafeCommand.hs b/Utility/SafeCommand.hs
index aedf27137..2c6439b45 100644
--- a/Utility/SafeCommand.hs
+++ b/Utility/SafeCommand.hs
@@ -78,8 +78,8 @@ safeSystemEnv command params env = do
{- executeFile with debug logging -}
executeFile :: FilePath -> Bool -> [String] -> Maybe [(String, String)] -> IO ()
executeFile c path p e = do
- debugM "Utility.SafeCommand.executeFile" $
- "Running: " ++ c ++ " " ++ show p ++ " " ++ maybe "" show e
+ --debugM "Utility.SafeCommand.executeFile" $
+ -- "Running: " ++ c ++ " " ++ show p ++ " " ++ maybe "" show e
System.Posix.Process.executeFile c path p e
{- Escapes a filename or other parameter to be safely able to be exposed to