summaryrefslogtreecommitdiffhomepage
path: root/Log.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-04-28 18:36:08 -0400
committerJoey Hess <joeyh@joeyh.name>2017-04-28 18:36:08 -0400
commit175d89cb3d6914ddda68f3294ab172e29784d16d (patch)
tree02c90ce955a8d154a3ecf5372d4536f2c42110f9 /Log.hs
parente4ae1644d7dff23d8ddcc9afe0412ba4a7e5d6b9 (diff)
downloaddebug-me-175d89cb3d6914ddda68f3294ab172e29784d16d.tar.gz
only show log filename at end
Diffstat (limited to 'Log.hs')
-rw-r--r--Log.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Log.hs b/Log.hs
index ac250a1..7e414a1 100644
--- a/Log.hs
+++ b/Log.hs
@@ -63,9 +63,7 @@ withSessionLogger sessionid a = bracket setup cleanup go
setup = do
dir <- logDir
createDirectoryIfMissing False dir
- let logfile = sessionLogFile dir sessionid
- putStrLn $ "** debug-me is logging to " ++ logfile
- return logfile
+ return $ sessionLogFile dir sessionid
cleanup logfile = putStrLn $ "** debug-me session was logged to " ++ logfile
go logfile = withFile logfile WriteMode (a . mkLogger)