summaryrefslogtreecommitdiffhomepage
path: root/Role
diff options
context:
space:
mode:
Diffstat (limited to 'Role')
-rw-r--r--Role/Developer.hs2
-rw-r--r--Role/User.hs3
-rw-r--r--Role/Watcher.hs2
3 files changed, 4 insertions, 3 deletions
diff --git a/Role/Developer.hs b/Role/Developer.hs
index d210e50..36cc600 100644
--- a/Role/Developer.hs
+++ b/Role/Developer.hs
@@ -51,7 +51,7 @@ run' runner url = do
void $ runClientApp app
developer :: TMVar (TVar DeveloperState) -> TMChan (Message Entered) -> TMChan AnyMessage -> SessionID -> IO ()
-developer dsv ichan ochan sid = withSessionLogger sid $ \logger -> do
+developer dsv ichan ochan sid = withSessionLogger (Just "remote") sid $ \logger -> do
sk <- genMySessionKey
(controlinput, controloutput) <- openControlWindow
displayInControlWindow controlinput
diff --git a/Role/User.hs b/Role/User.hs
index d11c235..1e842d0 100644
--- a/Role/User.hs
+++ b/Role/User.hs
@@ -44,7 +44,8 @@ run os = fromMaybe (ExitFailure 101) <$> connect
putStrLn "Others can connect to this session and help you debug by running:"
putStrLn $ " debug-me " ++ show url
hFlush stdout
- withSessionLogger sid $ go ochan ichan usv controlinput controloutput
+ withSessionLogger Nothing sid $
+ go ochan ichan usv controlinput controloutput
go ochan ichan usv controlinput controloutput logger = do
(cmd, cmdparams) <- shellCommand os
runWithPty cmd cmdparams $ \(p, ph) -> do
diff --git a/Role/Watcher.hs b/Role/Watcher.hs
index f314b46..0867da1 100644
--- a/Role/Watcher.hs
+++ b/Role/Watcher.hs
@@ -15,7 +15,7 @@ run :: WatchOpts -> IO ()
run = run' watcher . watchUrl
watcher :: TMVar (TVar DeveloperState) -> TMChan (Message Entered) -> TMChan AnyMessage -> SessionID -> IO ()
-watcher dsv _ichan ochan sid = withSessionLogger sid $ \logger -> inRawMode $ do
+watcher dsv _ichan ochan sid = withSessionLogger (Just "remote") sid $ \logger -> inRawMode $ do
sk <- genMySessionKey
(st, startoutput) <- processSessionStart sk ochan logger dsv
emitOutput startoutput