Skip to content

Commit

Permalink
Fix log-fast to work with current API
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuart Sierra committed Jan 13, 2017
1 parent f873eb3 commit ba27579
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/com/stuartsierra/log/dev_test.clj
Expand Up @@ -126,11 +126,10 @@
possible. Returns a function to stop logging. Use for testing file
rotation."
[]
(let [running? (atom true)]
(let [running? (atom true)
logger (org.slf4j.LoggerFactory/getLogger "dev")]
(future
(while @running?
(let [impls (gen/sample gen-impl 100)
levels (gen/sample gen-level 100)
messages (gen/sample (gen/resize 100 gen/string-alpha-numeric) 100)]
(dorun (map emit-log impls levels messages)))))
(doseq [message (gen/sample (gen/resize 100 gen/string-alpha-numeric) 100)]
(.debug logger message))))
(fn [] (reset! running? false))))

0 comments on commit ba27579

Please sign in to comment.