eventq_rabbitmq 1.7.2 → 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eventq_rabbitmq/rabbitmq_queue_worker.rb +5 -5
- data/lib/eventq_rabbitmq/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a29e15bfdb0d36a3f18a4d84da6131958845f2c6
|
4
|
+
data.tar.gz: 46b65ea667a0265e70be37c966117c00cd8621fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e161d4db3885dcfac0df4af56b1233fcfd45b1b21cad3565390dda92538c2bd5a8d2991ab56ddca63de718aad25de3a4531942d6437112b6cd541452158b547
|
7
|
+
data.tar.gz: fd07797de5793e975aa3291a39cfead251439b921d37170cbd7d0d8814fd59844f3d3e5be7cc212e8058b06eed6b5b27f1b988fa90046cbfb167513897c546c5
|
@@ -20,10 +20,10 @@ module EventQ
|
|
20
20
|
|
21
21
|
configure(queue, options)
|
22
22
|
|
23
|
-
raise
|
23
|
+
raise "[#{self.class}] - Worker is already running." if running?
|
24
24
|
|
25
25
|
if options[:client] == nil
|
26
|
-
raise
|
26
|
+
raise "[#{self.class}] - :client (QueueClient) must be specified."
|
27
27
|
end
|
28
28
|
|
29
29
|
EventQ.log(:info, "[#{self.class}] - Listening for messages.")
|
@@ -135,7 +135,7 @@ module EventQ
|
|
135
135
|
end
|
136
136
|
|
137
137
|
rescue => e
|
138
|
-
EventQ.log(:error, "[#{self.class}] - An unhandled error happened attempting to process a queue message. Error: #{e}")
|
138
|
+
EventQ.log(:error, "[#{self.class}] - An unhandled error happened attempting to process a queue message. Error: #{e.backtrace}")
|
139
139
|
|
140
140
|
error = true
|
141
141
|
|
@@ -147,8 +147,8 @@ module EventQ
|
|
147
147
|
|
148
148
|
end
|
149
149
|
|
150
|
-
rescue
|
151
|
-
EventQ.log(:error, "[#{self.class}] -
|
150
|
+
rescue => e
|
151
|
+
EventQ.log(:error, "[#{self.class}] - An error occurred attempting to pop a message from the queue. Error: #{e.backtrace}")
|
152
152
|
end
|
153
153
|
|
154
154
|
channel.close
|