frenzy_bunnies 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/frenzy_bunnies/version.rb +1 -1
- data/lib/frenzy_bunnies/worker.rb +5 -5
- metadata +1 -1
@@ -46,15 +46,15 @@ module FrenzyBunnies::Worker
|
|
46
46
|
h.ack
|
47
47
|
else
|
48
48
|
h.reject
|
49
|
-
error "
|
49
|
+
error "REJECTED", msg
|
50
50
|
end
|
51
51
|
end
|
52
52
|
rescue Timeout::Error
|
53
53
|
h.reject
|
54
|
-
error "TIMEOUT #{@queue_opts[:timeout_job_after]}
|
54
|
+
error "TIMEOUT #{@queue_opts[:timeout_job_after]}s", msg
|
55
55
|
rescue
|
56
56
|
h.reject
|
57
|
-
error "ERROR #{$!}"
|
57
|
+
error "ERROR #{$!}", msg
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
@@ -73,8 +73,8 @@ module FrenzyBunnies::Worker
|
|
73
73
|
@logger.info "[#{self.name}] #{text}"
|
74
74
|
end
|
75
75
|
|
76
|
-
def error(text)
|
77
|
-
@logger.error "[#{self.name}] #{text}"
|
76
|
+
def error(text, msg)
|
77
|
+
@logger.error "[#{self.name}] #{text} <#{msg}>"
|
78
78
|
end
|
79
79
|
end
|
80
80
|
end
|