mirror of https://github.com/status-im/timbre.git
Fix: `(log nil)` should work as 'never log'
This commit is contained in:
parent
29113cc203
commit
28e5490480
|
@ -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)]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue