Fix “uninitialized constant HttpLog” errors in tootctl (#32796)
parent
8f4af29a73
commit
befb44a08c
|
@ -5,7 +5,7 @@ dev_null = Logger.new('/dev/null')
|
||||||
Rails.logger = dev_null
|
Rails.logger = dev_null
|
||||||
ActiveRecord::Base.logger = dev_null
|
ActiveRecord::Base.logger = dev_null
|
||||||
ActiveJob::Base.logger = dev_null
|
ActiveJob::Base.logger = dev_null
|
||||||
HttpLog.configuration.logger = dev_null
|
HttpLog.configuration.logger = dev_null if defined?(HttpLog)
|
||||||
Paperclip.options[:log] = false
|
Paperclip.options[:log] = false
|
||||||
Chewy.logger = dev_null
|
Chewy.logger = dev_null
|
||||||
|
|
||||||
|
|
|
@ -596,7 +596,7 @@ def disable_log_stdout!
|
||||||
|
|
||||||
Rails.logger = dev_null
|
Rails.logger = dev_null
|
||||||
ActiveRecord::Base.logger = dev_null
|
ActiveRecord::Base.logger = dev_null
|
||||||
HttpLog.configuration.logger = dev_null
|
HttpLog.configuration.logger = dev_null if defined?(HttpLog)
|
||||||
Paperclip.options[:log] = false
|
Paperclip.options[:log] = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ namespace :repo do
|
||||||
|
|
||||||
url = "https://api.github.com/repos/#{REPOSITORY_NAME}/contributors?anon=1"
|
url = "https://api.github.com/repos/#{REPOSITORY_NAME}/contributors?anon=1"
|
||||||
|
|
||||||
HttpLog.config.compact_log = true
|
HttpLog.config.compact_log = true if defined?(HttpLog)
|
||||||
|
|
||||||
while url.present?
|
while url.present?
|
||||||
response = HTTP.get(url)
|
response = HTTP.get(url)
|
||||||
|
@ -43,7 +43,7 @@ namespace :repo do
|
||||||
path = Rails.root.join('CHANGELOG.md')
|
path = Rails.root.join('CHANGELOG.md')
|
||||||
tmp = Tempfile.new
|
tmp = Tempfile.new
|
||||||
|
|
||||||
HttpLog.config.compact_log = true
|
HttpLog.config.compact_log = true if defined?(HttpLog)
|
||||||
|
|
||||||
begin
|
begin
|
||||||
File.open(path, 'r') do |file|
|
File.open(path, 'r') do |file|
|
||||||
|
|
Loading…
Reference in New Issue