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.
@@ -1,3 +1,3 @@
1
1
  module FrenzyBunnies
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -46,15 +46,15 @@ module FrenzyBunnies::Worker
46
46
  h.ack
47
47
  else
48
48
  h.reject
49
- error "Cannot process message <#{msg.inspect}>"
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]} seconds have elapsed: #{$!}"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frenzy_bunnies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: