Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Revert from using case since 1.2 breaks with nil test constants.

  • Loading branch information...
commit 427e3a37f6be3bd93010d7e1119255d4a36500ff 1 parent e7a8aa8
Alexander Taggart authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 src/main/clojure/clojure/tools/logging.clj
10 src/main/clojure/clojure/tools/logging.clj
@@ -49,11 +49,11 @@
49 49 One can override the above by setting *force* to :direct or :agent; all
50 50 subsequent writes will be direct or via an agent, respectively."
51 51 [logger level throwable message]
52   - (if (case *force*
53   - :agent true
54   - :direct false
55   - nil (and (clojure.lang.LockingTransaction/isRunning)
56   - (*tx-agent-levels* level)))
  52 + (if (cond
  53 + (nil? *force*) (and (clojure.lang.LockingTransaction/isRunning)
  54 + (*tx-agent-levels* level))
  55 + (= *force* :agent) true
  56 + (= *force* :direct) false)
57 57 (send-off *logging-agent*
58 58 (fn [_#] (impl/write! logger level throwable message)))
59 59 (impl/write! logger level throwable message)))

0 comments on commit 427e3a3

Please sign in to comment.
Something went wrong with that request. Please try again.