background_lite 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,9 +50,9 @@ module BackgroundLite
50
50
  # ActiveMessaging, in the context of the object, with all the arguments
51
51
  # passed.
52
52
  def self.execute(message)
53
+ logger = BackgroundLite::Config.default_logger
53
54
  begin
54
55
  object, method, args, transaction_id = self.decode(message)
55
- logger = BackgroundLite::Config.default_logger
56
56
  if logger.debug?
57
57
  logger.debug "--- executing method: #{method}"
58
58
  logger.debug "--- with variables: #{args.inspect}"
@@ -64,6 +64,7 @@ module BackgroundLite
64
64
  rescue Exception => e
65
65
  logger.fatal e.message
66
66
  logger.fatal e.backtrace
67
+ raise e
67
68
  end
68
69
  end
69
70
  end
@@ -34,9 +34,9 @@ module BackgroundLite
34
34
  # Resque, in the context of the object, with all the arguments
35
35
  # passed.
36
36
  def self.perform(message)
37
+ logger = BackgroundLite::Config.default_logger
37
38
  begin
38
39
  object, method, args, transaction_id = self.decode(message)
39
- logger = BackgroundLite::Config.default_logger
40
40
  if logger.debug?
41
41
  logger.debug "--- executing method: #{method}"
42
42
  logger.debug "--- with variables: #{args.inspect}"
@@ -48,6 +48,7 @@ module BackgroundLite
48
48
  rescue Exception => e
49
49
  logger.fatal e.message
50
50
  logger.fatal e.backtrace
51
+ raise e
51
52
  end
52
53
  end
53
54
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: background_lite
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thomas Kadauke
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-10 00:00:00 +02:00
18
+ date: 2010-08-16 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21