mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-25 15:09:29 +00:00
Fix “uninitialized constant HttpLog” errors in tootctl (#32796)
This commit is contained in:
parent
8f4af29a73
commit
befb44a08c
|
@ -5,7 +5,7 @@ dev_null = Logger.new('/dev/null')
|
|||
Rails.logger = dev_null
|
||||
ActiveRecord::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
|
||||
Chewy.logger = dev_null
|
||||
|
||||
|
|
|
@ -596,7 +596,7 @@ def disable_log_stdout!
|
|||
|
||||
Rails.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
|
||||
end
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace :repo do
|
|||
|
||||
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?
|
||||
response = HTTP.get(url)
|
||||
|
@ -43,7 +43,7 @@ namespace :repo do
|
|||
path = Rails.root.join('CHANGELOG.md')
|
||||
tmp = Tempfile.new
|
||||
|
||||
HttpLog.config.compact_log = true
|
||||
HttpLog.config.compact_log = true if defined?(HttpLog)
|
||||
|
||||
begin
|
||||
File.open(path, 'r') do |file|
|
||||
|
|
Loading…
Reference in a new issue