From 6bfecea8f4e410ec36537a9b717e475f0241a803 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Fri, 1 Aug 2014 08:36:10 +0300 Subject: [PATCH] wai-logger 2.2 --- wai-extra/Network/Wai/Middleware/RequestLogger/Internal.hs | 2 ++ wai-extra/wai-extra.cabal | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wai-extra/Network/Wai/Middleware/RequestLogger/Internal.hs b/wai-extra/Network/Wai/Middleware/RequestLogger/Internal.hs index ffe1413d..3c009782 100644 --- a/wai-extra/Network/Wai/Middleware/RequestLogger/Internal.hs +++ b/wai-extra/Network/Wai/Middleware/RequestLogger/Internal.hs @@ -20,8 +20,10 @@ getDateGetter :: IO () -- ^ flusher -> IO (IO ByteString) getDateGetter flusher = do (getter, updater) <- clockDateCacher +#if !MIN_VERSION_wai_logger(2, 2, 0) _ <- forkIO $ forever $ do threadDelay 1000000 updater flusher +#endif return getter diff --git a/wai-extra/wai-extra.cabal b/wai-extra/wai-extra.cabal index 2986b8c0..00172d7f 100644 --- a/wai-extra/wai-extra.cabal +++ b/wai-extra/wai-extra.cabal @@ -1,5 +1,5 @@ Name: wai-extra -Version: 3.0.1.1 +Version: 3.0.1.2 Synopsis: Provides some basic WAI handlers and middleware. Description: The goal here is to provide common features without many dependencies. License: MIT @@ -34,7 +34,7 @@ Library , case-insensitive >= 0.2 , data-default-class , fast-logger >= 2.1 && < 2.3 - , wai-logger >= 2.0 && < 2.2 + , wai-logger >= 2.0 && < 2.3 , ansi-terminal , resourcet >= 0.4.6 && < 1.2 , void >= 0.5