mirror of https://github.com/status-im/timbre.git
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
|
will be deleted. In future, there will be a suffix fn to customize
|
||||||
the naming of archived logs."
|
the naming of archived logs."
|
||||||
[basepath max-count]
|
[basepath max-count]
|
||||||
(let [abs-path (-> basepath io/file (.getAbsolutePath))
|
(let [abs-path (-> basepath io/file (.getAbsolutePath))
|
||||||
logs (-> basepath matching-files sort)
|
logs (-> basepath matching-files sort)
|
||||||
[logs-to-rotate logs-to-delete] (split-at max-count logs)]
|
[logs-to-rotate logs-to-delete] (split-at max-count logs)]
|
||||||
(doseq [log-to-delete logs-to-delete]
|
(doseq [log-to-delete logs-to-delete]
|
||||||
(io/delete-file log-to-delete))
|
(io/delete-file log-to-delete))
|
||||||
|
|
Loading…
Reference in New Issue