Skip to content

Commit 9b37693

Browse files
authored
Remove redundant attr_reader (#2673)
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 ```
1 parent 727bf14 commit 9b37693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry-ruby/lib/sentry/log_event.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class LogEvent
4242

4343
attr_accessor :level, :body, :template, :attributes, :user
4444

45-
attr_reader :configuration, *SERIALIZEABLE_ATTRIBUTES
45+
attr_reader :configuration, *(SERIALIZEABLE_ATTRIBUTES - %i[level body attributes])
4646

4747
SERIALIZERS = %i[
4848
attributes

0 commit comments

Comments
 (0)