mirror of https://github.com/status-im/timbre.git
Clean up unnecessary destructuring.
This commit is contained in:
parent
7777e1d07f
commit
603584e13c
|
@ -64,8 +64,7 @@
|
|||
:pattern :daily})
|
||||
path: logfile path
|
||||
pattern: frequency of rotation, avialable values: :daily (default), :weekly, :monthly"
|
||||
[& [appender-opts {:keys [path pattern]
|
||||
:or {pattern :daily}}]]
|
||||
(let [default-appender-opts {:enabled? true :min-level nil}]
|
||||
[& [appender-opts]]
|
||||
(let [default-appender-opts {:enabled? true :min-level nil :pattern :daily}]
|
||||
(merge default-appender-opts appender-opts
|
||||
{:fn appender-fn})))
|
||||
|
|
Loading…
Reference in New Issue