mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 05:34:46 +02:00
Merge pull request #1925 from internetee/fix-sidqkiq-jobs
Added logger definition to Domains::ExpirePeriod::Base
This commit is contained in:
commit
0832d70d95
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@ module Domains
|
||||||
time = Time.zone.now.utc
|
time = Time.zone.now.utc
|
||||||
STDOUT << "#{time} - #{message}\n" unless Rails.env.test?
|
STDOUT << "#{time} - #{message}\n" unless Rails.env.test?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def logger
|
||||||
|
@logger ||= Logger.new(Rails.root.join('log', 'domain_expire_period.log'))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue