Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
fix: use Rails.logger if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
lsanwick committed Oct 22, 2020
1 parent dcc409e commit b0a7103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/apollo-studio-tracing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b0a7103

Please sign in to comment.