2
0
mirror of https://github.com/status-im/timbre.git synced 2025-01-31 14:15:00 +00:00

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

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