diff --git a/yesod/scaffold/Foundation.hs.cg b/yesod/scaffold/Foundation.hs.cg index ddbd07be..43afadb2 100644 --- a/yesod/scaffold/Foundation.hs.cg +++ b/yesod/scaffold/Foundation.hs.cg @@ -23,6 +23,7 @@ import Yesod.Default.Config import Yesod.Default.Util (addStaticContentExternal) import Network.HTTP.Conduit (Manager) import qualified Settings +import Settings.Development (development) import qualified Database.Persist.Store import Settings.StaticFiles import Database.Persist.~importGenericDB~ @@ -115,6 +116,11 @@ instance Yesod ~sitearg~ where -- Place Javascript at bottom of the body tag so the rest of the page loads first jsLoader _ = BottomOfBody + -- What messages should be logged. The following includes all messages when + -- in development, and warnings and errors in production. + shouldLog _ _source level = + development || level == LevelWarn || level == LevelError + -- How to run database actions. instance YesodPersist ~sitearg~ where type YesodPersistBackend ~sitearg~ = ~dbMonad~ diff --git a/yesod/scaffold/project.cabal.cg b/yesod/scaffold/project.cabal.cg index f13a8002..a165d51b 100644 --- a/yesod/scaffold/project.cabal.cg +++ b/yesod/scaffold/project.cabal.cg @@ -52,7 +52,7 @@ library build-depends: base >= 4 && < 5 -- , yesod-platform >= 1.1 && < 1.2 , yesod >= 1.1 && < 1.2 - , yesod-core >= 1.1 && < 1.2 + , yesod-core >= 1.1.2 && < 1.2 , yesod-auth >= 1.1 && < 1.2 , yesod-static >= 1.1 && < 1.2 , yesod-default >= 1.1 && < 1.2