Safe Haskell | None |
---|---|
Language | Haskell2010 |
Integration of Freckle.App tooling with Yesod
Synopsis
- makeLogger :: HasLogging a => a -> IO Logger
- messageLoggerSource :: HasLogging a => a -> Logger -> Loc -> LogSource -> LogLevel -> LogStr -> IO ()
- respondQueryCanceled :: (HasDogStatsClient site, HasDogStatsTags site) => HandlerFor site res -> HandlerFor site res
- respondQueryCanceledHeaders :: (HasDogStatsClient site, HasDogStatsTags site) => ResponseHeaders -> HandlerFor site res -> HandlerFor site res
Documentation
makeLogger :: HasLogging a => a -> IO Logger Source #
messageLoggerSource :: HasLogging a => a -> Logger -> Loc -> LogSource -> LogLevel -> LogStr -> IO () Source #
Functions for use as yesodMiddleware
respondQueryCanceled :: (HasDogStatsClient site, HasDogStatsTags site) => HandlerFor site res -> HandlerFor site res Source #
Catch SqlError
when queries are canceled due to timeout and respond 503
Also logs and increments a metric.
respondQueryCanceledHeaders :: (HasDogStatsClient site, HasDogStatsTags site) => ResponseHeaders -> HandlerFor site res -> HandlerFor site res Source #
respondQueryCanceledHeaders
but adding headers to the 503 response