♻️ Refactor error handling on exporter browser module.

This commit is contained in:
Andrey Antukh 2021-11-16 11:58:59 +01:00 committed by Andrés Moya
parent bf51e3db60
commit 0be2b2791f
9 changed files with 106 additions and 64 deletions

View file

@ -6,23 +6,22 @@
(ns app.core
(:require
[lambdaisland.glogi :as log]
[lambdaisland.glogi.console :as glogi-console]
[promesa.core :as p]
[app.browser :as bwr]
[app.common.logging :as l]
[app.config]
[app.http :as http]
[app.sentry :as sentry]
[app.config]
[app.browser :as bwr]))
[promesa.core :as p]))
(glogi-console/install!)
(enable-console-print!)
(l/initialize!)
(sentry/init!)
(defonce state (atom nil))
(defn start
[& args]
(log/info :msg "initializing")
(l/info :msg "initializing")
(p/do!
(bwr/init)
(http/init)))
@ -34,7 +33,7 @@
;; an empty line for visual feedback of restart
(js/console.log "")
(log/info :msg "stoping")
(l/info :msg "stoping")
(p/do!
(bwr/stop)
(http/stop)