[haskell-http-client] use katip logger, default strict (#6478)

* change strictFields cli option default to True;

* use katip logging; add cli-option for monad-logger

* fix date parsing

* remove package.yaml
This commit is contained in:
Jon Schoning
2017-09-18 12:24:38 -05:00
committed by wing328
parent 5f566255ac
commit d928617b69
62 changed files with 1315 additions and 1259 deletions

View File

@@ -13,19 +13,22 @@ import qualified SwaggerPetstore as S
import Data.Monoid ((<>))
import System.Environment (getEnvironment)
-- * MAIN
main :: IO ()
main = do
env <- getEnvironment
mgr <- NH.newManager NH.defaultManagerSettings
-- print log messages to sdtout
let config =
S.withStdoutLogging
S.newConfig { S.configHost = "http://0.0.0.0/v2"
-- , S.configLoggingFilter = S.debugLevelFilter
}
config0 <- S.withStdoutLogging =<< S.newConfig
let config = case lookup "HOST" env of
Just h -> config0 { S.configHost = BCL.pack h }
_ -> config0
putStrLn "******** CONFIG ********"
putStrLn (show config)