Skip to content

Commit c4c5071

Browse files
committed
diagnostics
1 parent 6968b80 commit c4c5071

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ghcide/src/Development/IDE/Core/Shake.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,12 +588,16 @@ shakeSessionInit IdeState{..} = do
588588
putMVar shakeSession initSession
589589

590590
shakeShut :: IdeState -> IO ()
591-
shakeShut IdeState{..} = withMVar shakeSession $ \runner -> do
591+
shakeShut ide@IdeState{..} = withMVar shakeSession $ \runner -> do
592592
-- Shake gets unhappy if you try to close when there is a running
593593
-- request so we first abort that.
594+
liftIO $ logDebug (ideLogger ide) "cancelShakeSession"
594595
void $ cancelShakeSession runner
596+
liftIO $ logDebug (ideLogger ide) "shakeDatabaseProfile"
595597
void $ shakeDatabaseProfile shakeDb
598+
liftIO $ logDebug (ideLogger ide) "shakeStop"
596599
shakeClose
600+
liftIO $ logDebug (ideLogger ide) "progressStop"
597601
progressStop $ progress shakeExtras
598602

599603

0 commit comments

Comments
 (0)