diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-04-28 12:50:53 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-04-28 12:51:57 -0400 |
commit | e833b89e2a1a1c2acbc0eb8bed1760ef0e50f3c5 (patch) | |
tree | 6e29670d7aeb13fc81ba30a68e21813d6ecab470 /Role/User.hs | |
parent | d605fdc0bbed885a003a8c42c53ce3dfadf07c49 (diff) | |
download | debug-me-e833b89e2a1a1c2acbc0eb8bed1760ef0e50f3c5.tar.gz |
log to ~/.debug-me/log/
Make watcher also log and display the name of the logfile at start and
end of session.
--download still downloads to current directory because that seems less
surprising than downloading to elsewhere. Also, the user might want to
keep a copy of the local log while downloading the server log.
Diffstat (limited to 'Role/User.hs')
-rw-r--r-- | Role/User.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Role/User.hs b/Role/User.hs index fe679a5..4ecb31f 100644 --- a/Role/User.hs +++ b/Role/User.hs @@ -40,7 +40,7 @@ run os = fromMaybe (ExitFailure 101) <$> connect putStrLn "Others can connect to this session and help you debug by running:" putStrLn $ " debug-me --debug " ++ url hFlush stdout - withLogger "debug-me.log" $ go ochan ichan usv + withSessionLogger sid $ go ochan ichan usv go ochan ichan usv logger = do (cmd, cmdparams) <- shellCommand os runWithPty cmd cmdparams $ \(p, ph) -> do |