Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Helpful functions and types for generating log statements and URIs during Options fetching and merging.
Synopsis
- censorQuery :: Text -> Query -> Query
- updateQuery :: (Query -> Query) -> URI -> URI
- censorURI :: Text -> URI -> URI
- connInfoToLog :: ConnInfo -> StartupLog
- serveOptsToLog :: ToJSON (EngineLogType impl) => ServeOptions impl -> StartupLog
- mkGenericLog :: ToJSON a => LogLevel -> Text -> a -> StartupLog
- data StartupTimeInfo = StartupTimeInfo {
- _stiMessage :: !Text
- _stiTimeTaken :: !Double
Documentation
connInfoToLog :: ConnInfo -> StartupLog Source #
Generate a StartupLog
from the Postgres ConnInfo
.
serveOptsToLog :: ToJSON (EngineLogType impl) => ServeOptions impl -> StartupLog Source #
Generate a StartupLog
from the final ServeOptions
.
mkGenericLog :: ToJSON a => LogLevel -> Text -> a -> StartupLog Source #
data StartupTimeInfo Source #
Instances
FromJSON StartupTimeInfo Source # | |
Defined in Hasura.Server.Init.Logging parseJSON :: Value -> Parser StartupTimeInfo Source # parseJSONList :: Value -> Parser [StartupTimeInfo] Source # | |
ToJSON StartupTimeInfo Source # | |
Defined in Hasura.Server.Init.Logging toJSON :: StartupTimeInfo -> Value Source # toEncoding :: StartupTimeInfo -> Encoding Source # toJSONList :: [StartupTimeInfo] -> Value Source # toEncodingList :: [StartupTimeInfo] -> Encoding Source # |