Blammo 1.1.2.3 → 1.1.3.0
raw patch · 3 files changed
+11/−11 lines, 3 filesdep ~fast-loggerdep ~monad-loggerdep ~monad-logger-aesonPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: fast-logger, monad-logger, monad-logger-aeson
API changes (from Hackage documentation)
Files
- Blammo.cabal +4/−4
- CHANGELOG.md +6/−1
- src/Blammo/Logging/Logger.hs +1/−6
Blammo.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: Blammo-version: 1.1.2.3+version: 1.1.3.0 license: MIT license-file: LICENSE maintainer: Freckle Education@@ -58,10 +58,10 @@ dlist >=0.8.0.5, envparse >=0.5.0, exceptions >=0.10.0,- fast-logger >=2.4.11,+ fast-logger >=3.2.3, http-types >=0.12.2, lens >=4.16.1,- monad-logger-aeson >=0.3.0.2,+ monad-logger-aeson >=0.4.0.3, mtl >=2.2.2, text >=1.2.3.1, time >=1.8.0.2,@@ -101,7 +101,7 @@ aeson >=1.5.2.0, base >=4.11.1.0 && <5, markdown-unlit >=0.5.0,- monad-logger >=0.3.30,+ monad-logger >=0.3.39, mtl >=2.2.2, text >=1.2.3.1
CHANGELOG.md view
@@ -1,4 +1,9 @@-## [_Unreleased_](https://github.com/freckle/blammo/compare/v1.1.2.3...main)+## [_Unreleased_](https://github.com/freckle/blammo/compare/v1.1.3.0...main)++## [v1.1.3.0](https://github.com/freckle/blammo/compare/v1.1.2.3...v1.1.3.0)++- Update fast-logger to fix log flushing bug, and remove 0.1s delay that was+ introduced as a workaround. ## [v1.1.2.3](https://github.com/freckle/blammo/compare/v1.1.2.2...v1.1.2.3)
src/Blammo/Logging/Logger.hs view
@@ -27,7 +27,6 @@ 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 (..))@@ -83,11 +82,7 @@ flushLogStr :: MonadIO m => Logger -> m () flushLogStr logger = case lLoggedMessages logger of- 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+ Nothing -> liftIO $ FastLogger.flushLogStr loggerSet Just _ -> pure () where loggerSet = getLoggerLoggerSet logger