From b0a7103882cda74dbcf39cf6f84339e655e3506b Mon Sep 17 00:00:00 2001 From: Luke Sanwick Date: Thu, 22 Oct 2020 11:08:23 -0700 Subject: [PATCH] fix: use Rails.logger if it exists --- lib/apollo-studio-tracing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apollo-studio-tracing.rb b/lib/apollo-studio-tracing.rb index b655399a2..af39aa1af 100644 --- a/lib/apollo-studio-tracing.rb +++ b/lib/apollo-studio-tracing.rb @@ -13,7 +13,7 @@ module ApolloStudioTracing attr_accessor :logger # TODO: Initialize this to Rails.logger in a Railtie - self.logger = Logger.new(STDOUT) + self.logger = Rails.logger || Logger.new(STDOUT) def use(schema, **options) tracer = ApolloStudioTracing::Tracer.new(**options)