Use the app logger and require railtie

This commit is contained in:
Abdelkader Boudih committed 2014-10-08 12:01:32 +00:00
1 parent d1bbe8cf94
commit 9c7e953d1b
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -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