提交 2dba88c2 编写于 作者: G George Claghorn 提交者: GitHub

Merge pull request #55 from SGospodinov/logger-for-5.2.0

Fixing logger to work with Rails 5.2.0.alpha
......@@ -2,9 +2,9 @@
class ActiveStorage::LogSubscriber < ActiveSupport::LogSubscriber
def service_upload(event)
message = color("Uploaded file to key: #{key_in(event)}", GREEN)
message << color(" (checksum: #{event.payload[:checksum]})", GREEN) if event.payload[:checksum]
info event, message
message = "Uploaded file to key: #{key_in(event)}"
message << " (checksum: #{event.payload[:checksum]})"
info event, color(message, GREEN) if event.payload[:checksum]
end
def service_download(event)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册