Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
882963615d |
@@ -19,8 +19,11 @@
|
|||||||
;; log uncaught exceptions in threads
|
;; log uncaught exceptions in threads
|
||||||
(Thread/setDefaultUncaughtExceptionHandler
|
(Thread/setDefaultUncaughtExceptionHandler
|
||||||
(fn [thread ex]
|
(fn [thread ex]
|
||||||
|
;; Integrant exceptions include component configuration in ex-data. Logging
|
||||||
|
;; the exception object can therefore disclose database or cookie secrets.
|
||||||
(log/error {:what :uncaught-exception
|
(log/error {:what :uncaught-exception
|
||||||
:exception ex
|
:exception-class (.getName (class ex))
|
||||||
|
:message (.getMessage ex)
|
||||||
:where (str "Uncaught exception on " (.getName thread))})))
|
:where (str "Uncaught exception on " (.getName thread))})))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
[clojure.test :refer [deftest is]]
|
[clojure.test :refer [deftest is]]
|
||||||
[pmagnus.elprice.core :as core]))
|
[pmagnus.elprice.core :as core]))
|
||||||
|
|
||||||
|
|
||||||
(deftest system-state-is-managed-in-an-atom
|
(deftest system-state-is-managed-in-an-atom
|
||||||
(is (instance? clojure.lang.Atom core/system)))
|
(is (instance? clojure.lang.Atom core/system)))
|
||||||
|
|||||||
Reference in New Issue
Block a user