diff options
author | Joris | 2019-09-09 20:42:41 +0200 |
---|---|---|
committer | Joris | 2019-09-09 20:42:41 +0200 |
commit | 88a2f0c22b523dd5246cefaeefd6c08bf9d6fba7 (patch) | |
tree | a138ceec2036313bc81b4ab2b0685914ee166c29 /src/executable/haskell/Main.hs | |
parent | 3e2c3f014bce0a82ac8708925806be05412898f9 (diff) |
Use logging library instead of putStrLn
Diffstat (limited to 'src/executable/haskell/Main.hs')
-rw-r--r-- | src/executable/haskell/Main.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/executable/haskell/Main.hs b/src/executable/haskell/Main.hs index 8c0f37f..34d67a2 100644 --- a/src/executable/haskell/Main.hs +++ b/src/executable/haskell/Main.hs @@ -2,6 +2,7 @@ module Main ( main ) where +import qualified Control.Logging as Logging import qualified Network.Wreq.Session as Session import qualified Conf @@ -11,4 +12,6 @@ main :: IO () main = do conf <- Conf.parse "application.conf" session <- Session.newSession - AdListener.start conf session + Logging.withStdoutLogging $ do + Logging.setLogLevel (Conf.logLevel conf) + AdListener.start conf session |