redis-repeater 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/redis_repeater/repeater.rb +2 -2
- data/lib/redis_repeater/version.rb +1 -1
- metadata +1 -1
@@ -10,7 +10,7 @@ module RedisRepeater
|
|
10
10
|
@repeats = []
|
11
11
|
# Get the logger
|
12
12
|
@logger = logger
|
13
|
-
@logger ||= Logger.new(
|
13
|
+
@logger ||= Logger.new(configuration['log']) if configuration['log']
|
14
14
|
@logger ||= Logger.new(STDOUT)
|
15
15
|
# Load the configuration and start the server
|
16
16
|
load_hash_configuration configuration
|
@@ -23,8 +23,8 @@ module RedisRepeater
|
|
23
23
|
@repeats.each do |job|
|
24
24
|
EventMachine::add_periodic_timer(job.timeout) { job.perform }
|
25
25
|
end
|
26
|
+
@logger.info "Repeating #{@repeats.count} #{@repeats.count == 1 ? 'queue' : 'queues'} forever!"
|
26
27
|
end
|
27
|
-
@logger.info "\nRepeating #{@repeats.count} #{@repeats.count == 1 ? 'queue' : 'queues'} forever!"
|
28
28
|
end
|
29
29
|
|
30
30
|
private
|