aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage/log_subscriber.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activestorage/lib/active_storage/log_subscriber.rb')
-rw-r--r--activestorage/lib/active_storage/log_subscriber.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activestorage/lib/active_storage/log_subscriber.rb b/activestorage/lib/active_storage/log_subscriber.rb
index 5c1b8d23ef..80cc5d5c80 100644
--- a/activestorage/lib/active_storage/log_subscriber.rb
+++ b/activestorage/lib/active_storage/log_subscriber.rb
@@ -1,10 +1,12 @@
+# frozen_string_literal: true
+
require "active_support/log_subscriber"
module ActiveStorage
class LogSubscriber < ActiveSupport::LogSubscriber
def service_upload(event)
message = "Uploaded file to key: #{key_in(event)}"
- message << " (checksum: #{event.payload[:checksum]})" if event.payload[:checksum]
+ message += " (checksum: #{event.payload[:checksum]})" if event.payload[:checksum]
info event, color(message, GREEN)
end