Skip to content

Commit

Permalink
rename LogGetSessionRetry to LogLookupSessionCache for clarity in log…
Browse files Browse the repository at this point in the history
…ging
  • Loading branch information
soulomoon committed Nov 8, 2024
1 parent 1f97c40 commit 4c998bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ghcide/session-loader/Development/IDE/Session.hs
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ data Log
| LogSessionNewLoadedFiles ![FilePath]
| LogSessionReloadOnError FilePath ![FilePath]
| LogGetOptionsLoop !FilePath
| LogGetSessionRetry !FilePath
| LogLookupSessionCache !FilePath
deriving instance Show Log

instance Pretty Log where
pretty = \case
LogGetSessionRetry path -> "Retrying get session for" <+> pretty path
LogLookupSessionCache path -> "Looking up session cache for" <+> pretty path
LogGetOptionsLoop fp -> "Loop: getOptions for" <+> pretty fp
LogSessionReloadOnError path files ->
"Reloading file due to error in" <+> pretty path <+> "with files:" <+> pretty files
Expand Down Expand Up @@ -799,7 +799,7 @@ loadSessionWithOptions recorder SessionLoadingOptions{..} rootDir que = do
let ncfp = toNormalizedFilePath' absFile
-- check if in the cache
res <- atomically $ checkInCache ncfp
logWith recorder Info $ LogGetSessionRetry absFile
logWith recorder Info $ LogLookupSessionCache absFile
updateDateRes <- case res of
Just r -> do
depOk <- checkDependencyInfo (snd r)
Expand Down

0 comments on commit 4c998bd

Please sign in to comment.