diff options
| author | Ivar Refsdal <ivar.refsdal@nsd.no> | 2021-09-17 14:51:01 +0200 |
|---|---|---|
| committer | Ivar Refsdal <ivar.refsdal@nsd.no> | 2021-09-17 14:51:01 +0200 |
| commit | d13b0cb0b72a9cef9f8e9bd82616899796a4853f (patch) | |
| tree | 1772613c72c1c71e6086af953424cae73e2c69cd /src/com/github/ivarref/yoltq.clj | |
| parent | Capture-bindings works (diff) | |
| download | fiinha-d13b0cb0b72a9cef9f8e9bd82616899796a4853f.tar.gz fiinha-d13b0cb0b72a9cef9f8e9bd82616899796a4853f.tar.xz | |
Use [#'taoensso.timbre/*context*] as default :capture-bindings if present
Diffstat (limited to 'src/com/github/ivarref/yoltq.clj')
| -rw-r--r-- | src/com/github/ivarref/yoltq.clj | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/github/ivarref/yoltq.clj b/src/com/github/ivarref/yoltq.clj index 6341e41..58efca1 100644 --- a/src/com/github/ivarref/yoltq.clj +++ b/src/com/github/ivarref/yoltq.clj @@ -1,6 +1,5 @@ (ns com.github.ivarref.yoltq - (:require [datomic-schema.core] - [datomic.api :as d] + (:require [datomic.api :as d] [clojure.tools.logging :as log] [com.github.ivarref.yoltq.impl :as i] [com.github.ivarref.yoltq.report-queue :as rq] @@ -58,7 +57,9 @@ ; contain the stacktrace of the stuck threads. :pool-size 4 - :capture-bindings [] + :capture-bindings (if-let [s (resolve (symbol "taoensso.timbre/*context*"))] + [s] + []) ; How often should the system be polled for failed queue jobs :system-error-poll-delay (Duration/ofMinutes 1) |
