🎉 Add optional loki integration.

And refactor internal error reporting.
This commit is contained in:
Andrey Antukh 2021-02-15 13:14:05 +01:00 committed by Andrés Moya
parent 90d7efe3a9
commit c1476d0397
15 changed files with 331 additions and 98 deletions

View file

@ -12,7 +12,6 @@
(:require
[app.common.spec :as us]
[app.common.uuid :as uuid]
[app.config :as cfg]
[app.db :as db]
[app.util.async :as aa]
[app.util.log4j :refer [update-thread-context!]]
@ -210,10 +209,6 @@
[error item]
(let [edata (ex-data error)]
{:id (uuid/next)
:version (:full cfg/version)
:host (:public-uri cfg/config)
:class (.getCanonicalName ^java.lang.Class (class error))
:hint (ex-message error)
:data edata
:params item}))