fix scaffold: writeLogMsg -> logMsg
This commit is contained in:
parent
dcd3042df1
commit
9206d60481
@ -23,7 +23,7 @@ import Yesod.Auth
|
||||
import Yesod.Auth.OpenId
|
||||
import Yesod.Default.Config
|
||||
import Yesod.Default.Util (addStaticContentExternal)
|
||||
import Yesod.Logger (Logger, writeLogMsg, formatLogText, logLazyText)
|
||||
import Yesod.Logger (Logger, logMsg, formatLogText, logLazyText)
|
||||
import qualified Settings
|
||||
import qualified Data.ByteString.Lazy as L
|
||||
import qualified Database.Persist.Base
|
||||
@ -108,7 +108,7 @@ instance Yesod ~sitearg~ where
|
||||
authRoute _ = Just $ AuthR LoginR
|
||||
|
||||
messageLogger y loc level msg =
|
||||
formatLogText (getLogger y) loc level msg >>= writeLogMsg (getLogger y)
|
||||
formatLogText (getLogger y) loc level msg >>= logMsg (getLogger y)
|
||||
|
||||
-- This function creates static content files in the static folder
|
||||
-- and names them based on a hash of their content. This allows
|
||||
|
||||
@ -18,7 +18,7 @@ import Yesod.Default.Config
|
||||
import Yesod.Default.Util (addStaticContentExternal)
|
||||
import Yesod.Static (Static, base64md5, StaticRoute(..))
|
||||
import Settings.StaticFiles
|
||||
import Yesod.Logger (Logger, writeLogMsg, formatLogText, logLazyText)
|
||||
import Yesod.Logger (Logger, logMsg, formatLogText, logLazyText)
|
||||
import qualified Settings
|
||||
import Settings (widgetFile)
|
||||
import Control.Monad.Trans.Class (lift)
|
||||
@ -89,7 +89,7 @@ instance Yesod ~sitearg~ where
|
||||
urlRenderOverride _ _ = Nothing
|
||||
|
||||
messageLogger y loc level msg =
|
||||
formatLogText (getLogger y) loc level msg >>= writeLogMsg (getLogger y)
|
||||
formatLogText (getLogger y) loc level msg >>= logMsg (getLogger y)
|
||||
|
||||
-- This function creates static content files in the static folder
|
||||
-- and names them based on a hash of their content. This allows
|
||||
|
||||
Loading…
Reference in New Issue
Block a user