mirror of
https://github.com/status-im/timbre.git
synced 2025-02-07 01:24:38 +00:00
Minor code formatting
This commit is contained in:
parent
01ec14613a
commit
c95a3253c7
@ -36,8 +36,8 @@
|
||||
will be deleted. In future, there will be a suffix fn to customize
|
||||
the naming of archived logs."
|
||||
[basepath max-count]
|
||||
(let [abs-path (-> basepath io/file (.getAbsolutePath))
|
||||
logs (-> basepath matching-files sort)
|
||||
(let [abs-path (-> basepath io/file (.getAbsolutePath))
|
||||
logs (-> basepath matching-files sort)
|
||||
[logs-to-rotate logs-to-delete] (split-at max-count logs)]
|
||||
(doseq [log-to-delete logs-to-delete]
|
||||
(io/delete-file log-to-delete))
|
||||
|
Loading…
x
Reference in New Issue
Block a user