aboutsummaryrefslogtreecommitdiff
path: root/test/com/github/ivarref/yoltq/log_init.clj
diff options
context:
space:
mode:
authorIvar Refsdal <ivar.refsdal@nsd.no>2021-09-17 14:51:01 +0200
committerIvar Refsdal <ivar.refsdal@nsd.no>2021-09-17 14:51:01 +0200
commitd13b0cb0b72a9cef9f8e9bd82616899796a4853f (patch)
tree1772613c72c1c71e6086af953424cae73e2c69cd /test/com/github/ivarref/yoltq/log_init.clj
parentCapture-bindings works (diff)
downloadfiinha-d13b0cb0b72a9cef9f8e9bd82616899796a4853f.tar.gz
fiinha-d13b0cb0b72a9cef9f8e9bd82616899796a4853f.tar.xz
Use [#'taoensso.timbre/*context*] as default :capture-bindings if present
Diffstat (limited to 'test/com/github/ivarref/yoltq/log_init.clj')
-rw-r--r--test/com/github/ivarref/yoltq/log_init.clj3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/com/github/ivarref/yoltq/log_init.clj b/test/com/github/ivarref/yoltq/log_init.clj
index cf69e55..1aa6c02 100644
--- a/test/com/github/ivarref/yoltq/log_init.clj
+++ b/test/com/github/ivarref/yoltq/log_init.clj
@@ -39,6 +39,9 @@
" "
(color-f (min-length 5 (str/upper-case (name level))))
" "
+
+ (when-let [x-req-id (:x-request-id context)]
+ (str "[" x-req-id "] "))
#_(.getName ^Thread (Thread/currentThread))
(color-f (force msg_))