@@ -114,9 +114,12 @@ getResourceWith reader = do
114114saveSnapshot :: (Binary a, Typeable a)
115115 => Internal.Snapshot -> Item a -> Compiler (Item a)
116116saveSnapshot snapshot item = do
117− store <- compilerStore <$> compilerAsk
118− compilerUnsafeIO $ Internal.saveSnapshot store snapshot item
119− return item
117+ store <- compilerStore <$> compilerAsk
118+ logger <- compilerLogger <$> compilerAsk
119+ compilerUnsafeIO $ do
120+ Logger.debug logger $ "Storing snapshot: " ++ snapshot
121+ Internal.saveSnapshot store snapshot item
122+ return item
120123
121124
122125--------------------------------------------------------------------------------