           @f
           (catch Throwable err
             (trace/print-stack-trace err)
-            (die (str "thread unexpectedly died with error " err) 1)))))))
+            (die (str "thread unexpectedly died with error " err))))))))

    (lcons/blocking-subscribe ch queue-name handle-message :auto-ack false)))

(defn die
  [msg exitcode]
  (println "Error:" msg)
  (System/exit exitcode))


(defn setup-logging!

                 ["--inisection" "(required) section to use from configuration file"]
                 ["--iniconfig" "(required) ini configuration filename"])]
    (when (:help options)
      (die banner :exit-code 0))
    (when-not (:iniconfig options)
      (die "--iniconfig option missing"))
    (when-not (:inisection options)
      (die "--inisection option missing"))
    options))


