]> gitweb.michael.orlitzky.com - dead/htsn.git/blobdiff - src/Main.hs
Finally get logging right.
[dead/htsn.git] / src / Main.hs
index f2febcb95ced479f1b965e2ea96ef21bf4ab7326..f36e2ba502d743e2d9d9f2665d366df385730a16 100644 (file)
@@ -189,7 +189,7 @@ log_in cfg h = do
 
 connect_and_loop :: Configuration -> String -> IO ()
 connect_and_loop cfg host = do
-  report_info $ "Connecting to " ++ host ++ "..."
+  report_info $ "Connecting to " ++ host ++ "."
   bracket acquire_handle release_handle action
   return ()
   where
@@ -247,7 +247,7 @@ main = do
   -- logging before the missing parameter checks below so that we can
   -- log the errors.
   let cfg = (def :: Configuration) `merge_optional` opt_config
-  init_logging (syslog cfg)
+  init_logging (log_file cfg) (log_level cfg) (syslog cfg)
 
   -- Check the optional config for missing required options. This is
   -- necessary because if the user specifies an empty list of