We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92b7d9b commit 51e4c8dCopy full SHA for 51e4c8d
clojure/src/rabbitmq/tutorials/emit_log_direct.clj
@@ -11,9 +11,10 @@
11
[severity & args]
12
(with-open [conn (lc/connect)]
13
(let [ch (lch/open conn)
14
- payload (if (empty? args)
15
- "Hello, world!"
16
- (s/join " " args))]
+ severity (or severity "info")
+ payload (if (empty? args)
+ "Hello, world!"
17
+ (s/join " " args))]
18
(le/direct ch x :durable false :auto-delete false)
19
(lb/publish ch x severity payload)
20
(println (format " [x] Sent %s" payload)))))
0 commit comments