mirror of https://github.com/status-im/timbre.git
[#127] Nb remove auto shutdown hook
This commit is contained in:
parent
e7f7b232a8
commit
a991195549
|
@ -582,14 +582,6 @@
|
||||||
`(do (assert (<= 0 ~probability 1) "Probability: 0 <= p <= 1")
|
`(do (assert (<= 0 ~probability 1) "Probability: 0 <= p <= 1")
|
||||||
(when (< (rand) ~probability) ~@body)))
|
(when (< (rand) ~probability) ~@body)))
|
||||||
|
|
||||||
;;;; EXPERIMENTAL shutdown hook
|
|
||||||
;; Workaround for http://dev.clojure.org/jira/browse/CLJ-124
|
|
||||||
|
|
||||||
#+clj
|
|
||||||
(defonce ^:private shutdown-hook
|
|
||||||
(.addShutdownHook (Runtime/getRuntime)
|
|
||||||
(Thread. (fn [] (shutdown-agents)))))
|
|
||||||
|
|
||||||
;;;; Deprecated
|
;;;; Deprecated
|
||||||
|
|
||||||
(defn str-println [& xs] (enc/spaced-str xs))
|
(defn str-println [& xs] (enc/spaced-str xs))
|
||||||
|
|
Loading…
Reference in New Issue