mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2025-01-05 23:53:44 +01:00
Use Rails.logger.warn instead of puts
This commit is contained in:
parent
2d076504d9
commit
d092a01cea
1 changed files with 2 additions and 2 deletions
|
@ -41,12 +41,12 @@ module CacheConcern
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
$stderr.puts "fetch_value issue culprit: #{culprit.inspect}\n"
|
Rails.logger.warn "fetch_value issue culprit: #{culprit.inspect}"
|
||||||
|
|
||||||
cache_key = Rails.cache.send(:normalize_key, culprit, {})
|
cache_key = Rails.cache.send(:normalize_key, culprit, {})
|
||||||
entry = Rails.cache.send(:read_entry, cache_key)
|
entry = Rails.cache.send(:read_entry, cache_key)
|
||||||
raw_marshal = Zlib::Inflate.inflate(entry.instance_variable_get(:@value))
|
raw_marshal = Zlib::Inflate.inflate(entry.instance_variable_get(:@value))
|
||||||
$stderr.puts "base64 marshal of culprit: #{Base64.encode64(raw_marshal)}"
|
Rails.logger.warn "base64 marshal of culprit: #{Base64.encode64(raw_marshal)}"
|
||||||
end
|
end
|
||||||
|
|
||||||
return [] if raw.empty?
|
return [] if raw.empty?
|
||||||
|
|
Loading…
Reference in a new issue