From 398abb0adee11f92e1ef2f5795aebe7cda894a50 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Thu, 10 Apr 2014 19:58:46 +0300 Subject: [PATCH] Scaffolding update --- yesod-bin/hsfiles/mongo.hsfiles | 9 ++++++--- yesod-bin/hsfiles/mysql.hsfiles | 9 ++++++--- yesod-bin/hsfiles/postgres-fay.hsfiles | 9 ++++++--- yesod-bin/hsfiles/postgres.hsfiles | 9 ++++++--- yesod-bin/hsfiles/simple.hsfiles | 9 ++++++--- yesod-bin/hsfiles/sqlite.hsfiles | 9 ++++++--- 6 files changed, 36 insertions(+), 18 deletions(-) diff --git a/yesod-bin/hsfiles/mongo.hsfiles b/yesod-bin/hsfiles/mongo.hsfiles index 6928b781..8f424d7b 100644 --- a/yesod-bin/hsfiles/mongo.hsfiles +++ b/yesod-bin/hsfiles/mongo.hsfiles @@ -5,6 +5,7 @@ {-# START_FILE .gitignore #-} dist* static/tmp/ +static/combined/ config/client_session_key.aes *.hi *.o @@ -15,6 +16,7 @@ yesod-devel/ .cabal-sandbox cabal.sandbox.config .DS_Store +*.swp {-# START_FILE Application.hs #-} {-# OPTIONS_GHC -fno-warn-orphans #-} @@ -37,7 +39,7 @@ import qualified Network.Wai.Middleware.RequestLogger as RequestLogger import qualified Database.Persist import Network.HTTP.Client.Conduit (newManager) import Control.Concurrent (forkIO, threadDelay) -import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize) +import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize, flushLogStr) import Network.Wai.Logger (clockDateCacher) import Data.Default (def) import Yesod.Core.Types (loggerSet, Logger (Logger)) @@ -71,7 +73,7 @@ makeApplication conf = do -- Create the WAI application and apply middlewares app <- toWaiAppPlain foundation let logFunc = messageLoggerSource foundation (appLogger foundation) - return (logWare app, logFunc) + return (logWare $ defaultMiddlewaresNoLogging app, logFunc) -- | Loads up any necessary settings, creates your foundation datatype, and -- performs some initialization. @@ -94,6 +96,7 @@ makeFoundation conf = do let updateLoop = do threadDelay 1000000 updater + flushLogStr loggerSet' updateLoop _ <- forkIO updateLoop @@ -407,7 +410,7 @@ library build-depends: base >= 4 && < 5 , yesod >= 1.2.5 && < 1.3 - , yesod-core >= 1.2 && < 1.3 + , yesod-core >= 1.2.12 && < 1.3 , yesod-auth >= 1.3 && < 1.4 , yesod-static >= 1.2 && < 1.3 , yesod-form >= 1.3 && < 1.4 diff --git a/yesod-bin/hsfiles/mysql.hsfiles b/yesod-bin/hsfiles/mysql.hsfiles index 70345c73..7a0b177a 100644 --- a/yesod-bin/hsfiles/mysql.hsfiles +++ b/yesod-bin/hsfiles/mysql.hsfiles @@ -5,6 +5,7 @@ {-# START_FILE .gitignore #-} dist* static/tmp/ +static/combined/ config/client_session_key.aes *.hi *.o @@ -15,6 +16,7 @@ yesod-devel/ .cabal-sandbox cabal.sandbox.config .DS_Store +*.swp {-# START_FILE Application.hs #-} {-# OPTIONS_GHC -fno-warn-orphans #-} @@ -39,7 +41,7 @@ import Database.Persist.Sql (runMigration) import Network.HTTP.Client.Conduit (newManager) import Control.Monad.Logger (runLoggingT) import Control.Concurrent (forkIO, threadDelay) -import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize) +import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize, flushLogStr) import Network.Wai.Logger (clockDateCacher) import Data.Default (def) import Yesod.Core.Types (loggerSet, Logger (Logger)) @@ -73,7 +75,7 @@ makeApplication conf = do -- Create the WAI application and apply middlewares app <- toWaiAppPlain foundation let logFunc = messageLoggerSource foundation (appLogger foundation) - return (logWare app, logFunc) + return (logWare $ defaultMiddlewaresNoLogging app, logFunc) -- | Loads up any necessary settings, creates your foundation datatype, and -- performs some initialization. @@ -96,6 +98,7 @@ makeFoundation conf = do let updateLoop = do threadDelay 1000000 updater + flushLogStr loggerSet' updateLoop _ <- forkIO updateLoop @@ -411,7 +414,7 @@ library build-depends: base >= 4 && < 5 , yesod >= 1.2.5 && < 1.3 - , yesod-core >= 1.2 && < 1.3 + , yesod-core >= 1.2.12 && < 1.3 , yesod-auth >= 1.3 && < 1.4 , yesod-static >= 1.2 && < 1.3 , yesod-form >= 1.3 && < 1.4 diff --git a/yesod-bin/hsfiles/postgres-fay.hsfiles b/yesod-bin/hsfiles/postgres-fay.hsfiles index c4886b04..742e852a 100644 --- a/yesod-bin/hsfiles/postgres-fay.hsfiles +++ b/yesod-bin/hsfiles/postgres-fay.hsfiles @@ -5,6 +5,7 @@ {-# START_FILE .gitignore #-} dist* static/tmp/ +static/combined/ config/client_session_key.aes *.hi *.o @@ -16,6 +17,7 @@ yesod-devel/ .cabal-sandbox cabal.sandbox.config .DS_Store +*.swp {-# START_FILE Application.hs #-} {-# OPTIONS_GHC -fno-warn-orphans #-} @@ -41,7 +43,7 @@ import Network.HTTP.Client.Conduit (newManager) import Yesod.Fay (getFaySite) import Control.Monad.Logger (runLoggingT) import Control.Concurrent (forkIO, threadDelay) -import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize) +import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize, flushLogStr) import Network.Wai.Logger (clockDateCacher) import Data.Default (def) import Yesod.Core.Types (loggerSet, Logger (Logger)) @@ -76,7 +78,7 @@ makeApplication conf = do -- Create the WAI application and apply middlewares app <- toWaiAppPlain foundation let logFunc = messageLoggerSource foundation (appLogger foundation) - return (logWare app, logFunc) + return (logWare $ defaultMiddlewaresNoLogging app, logFunc) -- | Loads up any necessary settings, creates your foundation datatype, and -- performs some initialization. @@ -99,6 +101,7 @@ makeFoundation conf = do let updateLoop = do threadDelay 1000000 updater + flushLogStr loggerSet' updateLoop _ <- forkIO updateLoop @@ -447,7 +450,7 @@ library build-depends: base >= 4 && < 5 , yesod >= 1.2.5 && < 1.3 - , yesod-core >= 1.2 && < 1.3 + , yesod-core >= 1.2.12 && < 1.3 , yesod-auth >= 1.3 && < 1.4 , yesod-static >= 1.2 && < 1.3 , yesod-form >= 1.3 && < 1.4 diff --git a/yesod-bin/hsfiles/postgres.hsfiles b/yesod-bin/hsfiles/postgres.hsfiles index b3826cda..b7e09d67 100644 --- a/yesod-bin/hsfiles/postgres.hsfiles +++ b/yesod-bin/hsfiles/postgres.hsfiles @@ -5,6 +5,7 @@ {-# START_FILE .gitignore #-} dist* static/tmp/ +static/combined/ config/client_session_key.aes *.hi *.o @@ -15,6 +16,7 @@ yesod-devel/ .cabal-sandbox cabal.sandbox.config .DS_Store +*.swp {-# START_FILE Application.hs #-} {-# OPTIONS_GHC -fno-warn-orphans #-} @@ -39,7 +41,7 @@ import Database.Persist.Sql (runMigration) import Network.HTTP.Client.Conduit (newManager) import Control.Monad.Logger (runLoggingT) import Control.Concurrent (forkIO, threadDelay) -import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize) +import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize, flushLogStr) import Network.Wai.Logger (clockDateCacher) import Data.Default (def) import Yesod.Core.Types (loggerSet, Logger (Logger)) @@ -73,7 +75,7 @@ makeApplication conf = do -- Create the WAI application and apply middlewares app <- toWaiAppPlain foundation let logFunc = messageLoggerSource foundation (appLogger foundation) - return (logWare app, logFunc) + return (logWare $ defaultMiddlewaresNoLogging app, logFunc) -- | Loads up any necessary settings, creates your foundation datatype, and -- performs some initialization. @@ -96,6 +98,7 @@ makeFoundation conf = do let updateLoop = do threadDelay 1000000 updater + flushLogStr loggerSet' updateLoop _ <- forkIO updateLoop @@ -411,7 +414,7 @@ library build-depends: base >= 4 && < 5 , yesod >= 1.2.5 && < 1.3 - , yesod-core >= 1.2 && < 1.3 + , yesod-core >= 1.2.12 && < 1.3 , yesod-auth >= 1.3 && < 1.4 , yesod-static >= 1.2 && < 1.3 , yesod-form >= 1.3 && < 1.4 diff --git a/yesod-bin/hsfiles/simple.hsfiles b/yesod-bin/hsfiles/simple.hsfiles index 477e1f2a..e6dbc834 100644 --- a/yesod-bin/hsfiles/simple.hsfiles +++ b/yesod-bin/hsfiles/simple.hsfiles @@ -5,6 +5,7 @@ {-# START_FILE .gitignore #-} dist* static/tmp/ +static/combined/ config/client_session_key.aes *.hi *.o @@ -15,6 +16,7 @@ yesod-devel/ .cabal-sandbox cabal.sandbox.config .DS_Store +*.swp {-# START_FILE Application.hs #-} {-# OPTIONS_GHC -fno-warn-orphans #-} @@ -34,7 +36,7 @@ import Network.Wai.Middleware.RequestLogger import qualified Network.Wai.Middleware.RequestLogger as RequestLogger import Network.HTTP.Client.Conduit (newManager) import Control.Concurrent (forkIO, threadDelay) -import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize) +import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize, flushLogStr) import Network.Wai.Logger (clockDateCacher) import Data.Default (def) import Yesod.Core.Types (loggerSet, Logger (Logger)) @@ -68,7 +70,7 @@ makeApplication conf = do -- Create the WAI application and apply middlewares app <- toWaiAppPlain foundation let logFunc = messageLoggerSource foundation (appLogger foundation) - return (logWare app, logFunc) + return (logWare $ defaultMiddlewaresNoLogging app, logFunc) -- | Loads up any necessary settings, creates your foundation datatype, and -- performs some initialization. @@ -87,6 +89,7 @@ makeFoundation conf = do let updateLoop = do threadDelay 1000000 updater + flushLogStr loggerSet' updateLoop _ <- forkIO updateLoop @@ -338,7 +341,7 @@ library build-depends: base >= 4 && < 5 , yesod >= 1.2.5 && < 1.3 - , yesod-core >= 1.2 && < 1.3 + , yesod-core >= 1.2.12 && < 1.3 , yesod-auth >= 1.3 && < 1.4 , yesod-static >= 1.2 && < 1.3 , yesod-form >= 1.3 && < 1.4 diff --git a/yesod-bin/hsfiles/sqlite.hsfiles b/yesod-bin/hsfiles/sqlite.hsfiles index 9f7f57e2..82913b12 100644 --- a/yesod-bin/hsfiles/sqlite.hsfiles +++ b/yesod-bin/hsfiles/sqlite.hsfiles @@ -5,6 +5,7 @@ {-# START_FILE .gitignore #-} dist* static/tmp/ +static/combined/ config/client_session_key.aes *.hi *.o @@ -15,6 +16,7 @@ yesod-devel/ .cabal-sandbox cabal.sandbox.config .DS_Store +*.swp {-# START_FILE Application.hs #-} {-# OPTIONS_GHC -fno-warn-orphans #-} @@ -39,7 +41,7 @@ import Database.Persist.Sql (runMigration) import Network.HTTP.Client.Conduit (newManager) import Control.Monad.Logger (runLoggingT) import Control.Concurrent (forkIO, threadDelay) -import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize) +import System.Log.FastLogger (newStdoutLoggerSet, defaultBufSize, flushLogStr) import Network.Wai.Logger (clockDateCacher) import Data.Default (def) import Yesod.Core.Types (loggerSet, Logger (Logger)) @@ -73,7 +75,7 @@ makeApplication conf = do -- Create the WAI application and apply middlewares app <- toWaiAppPlain foundation let logFunc = messageLoggerSource foundation (appLogger foundation) - return (logWare app, logFunc) + return (logWare $ defaultMiddlewaresNoLogging app, logFunc) -- | Loads up any necessary settings, creates your foundation datatype, and -- performs some initialization. @@ -96,6 +98,7 @@ makeFoundation conf = do let updateLoop = do threadDelay 1000000 updater + flushLogStr loggerSet' updateLoop _ <- forkIO updateLoop @@ -411,7 +414,7 @@ library build-depends: base >= 4 && < 5 , yesod >= 1.2.5 && < 1.3 - , yesod-core >= 1.2 && < 1.3 + , yesod-core >= 1.2.12 && < 1.3 , yesod-auth >= 1.3 && < 1.4 , yesod-static >= 1.2 && < 1.3 , yesod-form >= 1.3 && < 1.4