 (ns oc.email.app
   (:gen-class)
   (:require [com.stuartsierra.component :as component]
-            [manifold.stream :as stream]
             [taoensso.timbre :as timbre]
+            [clojure.java.io :as jio]
+            [oc.lib.component.keep-alive :refer (map->KeepAlive)]
             [oc.lib.sentry.core :as sentry-lib :refer (map->SentryCapturer)]
             [oc.email.config :as c]
             [oc.lib.sqs :as sqs]

    "Email from: " c/email-from-domain "\n"
    "Email digest-prefix: " c/email-digest-prefix "\n"
    "Email images prefix: " c/email-images-prefix "\n"
    "FileStack: " (or c/filestack-api-key "false") "\n"
    "Log level: " c/log-level "\n"
    "Sentry: " c/sentry-config "\n"
    "\n"

      :sentry-capturer (map->SentryCapturer sentry)
      :sqs (component/using
            (sqs/sqs-listener sqs-creds sqs-queue sqs-msg-handler)
            [:sentry-capturer])
      :run-blocker (component/using
                    (map->KeepAlive nil)
                    [:sentry-capturer]))))

(defn echo-config []
  (println (str "\n"
