mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Added logger definition to Domains::ExpirePeriod::Base
This commit is contained in:
parent
eac7dd352b
commit
49b424f972
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@ module Domains
|
|||
time = Time.zone.now.utc
|
||||
STDOUT << "#{time} - #{message}\n" unless Rails.env.test?
|
||||
end
|
||||
|
||||
def logger
|
||||
@logger ||= Logger.new(Rails.root.join('log', 'domain_expire_period.log'))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue