From 9d73918f32b8620fcfdd7ba0a0b4c4f6500a3a76 Mon Sep 17 00:00:00 2001 From: viralpraxis Date: Sat, 9 Aug 2025 02:37:21 +0400 Subject: [PATCH] Remove redundant `attr_reader` These are leading to noisy warnings: ```shell sentry-ruby-5.26.0/lib/sentry/log_event.rb:45: warning: method redefined; discarding old level sentry-ruby-5.26.0/lib/sentry/log_event.rb:45: warning: method redefined; discarding old body sentry-ruby-5.26.0/lib/sentry/log_event.rb:45: warning: method redefined; discarding old attributes ``` --- sentry-ruby/lib/sentry/log_event.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry-ruby/lib/sentry/log_event.rb b/sentry-ruby/lib/sentry/log_event.rb index 83b280320..a30a2f59c 100644 --- a/sentry-ruby/lib/sentry/log_event.rb +++ b/sentry-ruby/lib/sentry/log_event.rb @@ -42,7 +42,7 @@ class LogEvent attr_accessor :level, :body, :template, :attributes, :user - attr_reader :configuration, *SERIALIZEABLE_ATTRIBUTES + attr_reader :configuration, *(SERIALIZEABLE_ATTRIBUTES - %i[level body attributes]) SERIALIZERS = %i[ attributes