Skip to content

Commit

Permalink
[#127] Nb remove auto shutdown hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Aug 16, 2015
1 parent e7f7b23 commit a991195
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/taoensso/timbre.cljx
Original file line number Diff line number Diff line change
Expand Up @@ -582,14 +582,6 @@
`(do (assert (<= 0 ~probability 1) "Probability: 0 <= p <= 1")
(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

(defn str-println [& xs] (enc/spaced-str xs))
Expand Down

0 comments on commit a991195

Please sign in to comment.