Redact secrets from startup error logs #4

Merged
magnus merged 1 commits from fix/redact-startup-errors into main 2026-09-18 15:10:34 +00:00
2 changed files with 7 additions and 3 deletions
Showing only changes of commit d2fc39422a - Show all commits
+4 -1
View File
@@ -19,8 +19,11 @@
;; log uncaught exceptions in threads
(Thread/setDefaultUncaughtExceptionHandler
(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
:exception ex
:exception-class (.getName (class ex))
:message (.getMessage ex)
:where (str "Uncaught exception on " (.getName thread))})))
+1
View File
@@ -3,5 +3,6 @@
[clojure.test :refer [deftest is]]
[pmagnus.elprice.core :as core]))
(deftest system-state-is-managed-in-an-atom
(is (instance? clojure.lang.Atom core/system)))