Skip to content

Commit 51e4c8d

Browse files
author
Michael Klishin
committed
Use the same default as Ruby example
1 parent 92b7d9b commit 51e4c8d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clojure/src/rabbitmq/tutorials/emit_log_direct.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
[severity & args]
1212
(with-open [conn (lc/connect)]
1313
(let [ch (lch/open conn)
14-
payload (if (empty? args)
15-
"Hello, world!"
16-
(s/join " " args))]
14+
severity (or severity "info")
15+
payload (if (empty? args)
16+
"Hello, world!"
17+
(s/join " " args))]
1718
(le/direct ch x :durable false :auto-delete false)
1819
(lb/publish ch x severity payload)
1920
(println (format " [x] Sent %s" payload)))))

0 commit comments

Comments
 (0)