From c2daf11f9f2468fd32644cbecca696b7301c623e Mon Sep 17 00:00:00 2001 From: Neel Shah Date: Wed, 24 Sep 2025 17:15:22 +0200 Subject: [PATCH] Fix old logger call in graphql --- CHANGELOG.md | 6 ++++++ sentry-ruby/lib/sentry/graphql.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a789a9cb..2ffcad5bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Unreleased + +### Internal + +- Fix leftover `config.logger` call in `graphql` patch ([#2722](https://github.com/getsentry/sentry-ruby/2722) + ## 5.27.1 ### Features diff --git a/sentry-ruby/lib/sentry/graphql.rb b/sentry-ruby/lib/sentry/graphql.rb index 645481a4d..c654c7e32 100644 --- a/sentry-ruby/lib/sentry/graphql.rb +++ b/sentry-ruby/lib/sentry/graphql.rb @@ -4,6 +4,6 @@ if defined?(::GraphQL::Schema) && defined?(::GraphQL::Tracing::SentryTrace) && ::GraphQL::Schema.respond_to?(:trace_with) ::GraphQL::Schema.trace_with(::GraphQL::Tracing::SentryTrace, set_transaction_name: true) else - config.logger.warn(Sentry::LOGGER_PROGNAME) { "You tried to enable the GraphQL integration but no GraphQL gem was detected. Make sure you have the `graphql` gem (>= 2.2.6) in your Gemfile." } + config.sdk_logger.warn(Sentry::LOGGER_PROGNAME) { "You tried to enable the GraphQL integration but no GraphQL gem was detected. Make sure you have the `graphql` gem (>= 2.2.6) in your Gemfile." } end end