packages feed

Blammo 1.1.2.2 → 1.1.2.3

raw patch · 3 files changed

+12/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

Blammo.cabal view
@@ -1,6 +1,6 @@ cabal-version:   1.18 name:            Blammo-version:         1.1.2.2+version:         1.1.2.3 license:         MIT license-file:    LICENSE maintainer:      Freckle Education
CHANGELOG.md view
@@ -1,4 +1,8 @@-## [_Unreleased_](https://github.com/freckle/blammo/compare/v1.1.2.2...main)+## [_Unreleased_](https://github.com/freckle/blammo/compare/v1.1.2.3...main)++## [v1.1.2.3](https://github.com/freckle/blammo/compare/v1.1.2.2...v1.1.2.3)++- Add small delay (0.1s) in `flushLogger` to work around fast-logger bug  ## [v1.1.2.2](https://github.com/freckle/blammo/compare/v1.1.2.1...v1.1.2.2) 
src/Blammo/Logging/Logger.hs view
@@ -27,6 +27,7 @@ import Blammo.Logging.Terminal import Blammo.Logging.Test hiding (getLoggedMessages) import qualified Blammo.Logging.Test as LoggedMessages+import Control.Concurrent (threadDelay) import Control.Lens (view) import Control.Monad (unless) import Control.Monad.IO.Class (MonadIO (..))@@ -82,7 +83,11 @@  flushLogStr :: MonadIO m => Logger -> m () flushLogStr logger = case lLoggedMessages logger of-  Nothing -> liftIO $ FastLogger.flushLogStr loggerSet+  Nothing -> liftIO $ do+    -- Delay for 0.1s before flushing to work around+    -- https://github.com/kazu-yamamoto/logger/issues/213+    threadDelay 100000+    FastLogger.flushLogStr loggerSet   Just _ -> pure ()  where   loggerSet = getLoggerLoggerSet logger