Use the app logger and require railtie
This commit is contained in:
parent
d1bbe8cf94
commit
9c7e953d1b
|
@ -32,7 +32,7 @@ require 'google/api_client/service_account'
|
|||
require 'google/api_client/batch'
|
||||
require 'google/api_client/gzip'
|
||||
require 'google/api_client/client_secrets'
|
||||
require 'google/api_client/railtie' if defined?(Rails::Railtie)
|
||||
require 'google/api_client/railtie' if defined?(Rails)
|
||||
|
||||
module Google
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
require 'rails/railtie'
|
||||
require 'google/api_client/logging'
|
||||
|
||||
module Google
|
||||
|
@ -9,7 +10,7 @@ module Google
|
|||
#
|
||||
class Railtie < Rails::Railtie
|
||||
initializer 'google-api-client' do |app|
|
||||
Google::APIClient.logger = Rails.logger
|
||||
Google::APIClient.logger = app.logger
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue