Fix: `(log nil)` should work as 'never log'

This commit is contained in:
Peter Taoussanis 2013-12-01 01:30:55 +07:00
parent 29113cc203
commit 28e5490480
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@
{:pre [(#{:nil :print-str :format} msg-type)]} {:pre [(#{:nil :print-str :format} msg-type)]}
`(let [;;; Support [level & log-args], [config level & log-args] sigs: `(let [;;; Support [level & log-args], [config level & log-args] sigs:
s1# ~s1 s1# ~s1
default-config?# (keyword? s1#) default-config?# (or (keyword? s1#) (nil? s1#))
config# (if default-config?# @config s1#) config# (if default-config?# @config s1#)
level# (if default-config?# s1# ~s2)] level# (if default-config?# s1# ~s2)]