Skip to content

Commit

Permalink
feat(debugger): Merge logs from scheduler and executor
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-daniel-gustafsson committed Nov 9, 2021
1 parent d6646e1 commit 7c42761
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/runtime-prototype/src/Debugger.hs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ initialState (Log es) = AppState

main :: IO ()
main = do
ml <- readLogExecutor
ml <- readLog
case ml of
Nothing -> putStrLn "Couldn't connect to scheduler pipe."
Just l -> void (defaultMain brickApp (initialState l))
Just l -> do
ml' <- readLogExecutor
case ml' of
Nothing -> putStrLn "Couldn't connect to executor."
Just l' -> void (defaultMain brickApp (initialState (merge l l')))

0 comments on commit 7c42761

Please sign in to comment.