Permalink
Browse files

Add trace logging to deliverer thread.

  • Loading branch information...
1 parent d08b578 commit 8f46b66af9b80f48572c893852f0884523d7e96f @technomancy committed May 29, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/die/roboter.clj
View
@@ -148,8 +148,10 @@
(doto (Thread. #(with-robots config
(wabbit/queue-declare response-queue true)
(wabbit/with-queue response-queue
- (doseq [response (wabbit/consuming-seq true)]
- (try (eval (read-string (String. (:body response))))
+ (doseq [response (wabbit/consuming-seq true)
+ :let [form (String. (:body response))]]
+ (log/trace "Deliverer received " form)
+ (try (eval (read-string form))
(catch Exception e
(log/warn "Problem delivering response" e)))))))
.start)))

0 comments on commit 8f46b66

Please sign in to comment.